Building Android Games with Cocos2d-x

Front Cover
Packt Publishing Ltd, Mar 30, 2015 - Computers - 160 pages
If you have a basic understanding of the C++ programming language and want to create videogames for the Android platform, then this technology and book is ideal for you.
 

What people are saying - Write a review

User Review - Flag as inappropriate

Since lots of beginner level cocos2d-x books in english has been published till now.
Here are Some pros and cons of this one which I feel as compared to other books:
**PROS: (Features exlusive to this book and it not present in other cocos2d-x (english) book)
---------------
Major thing:
---------------
1) JNI discussed, knowledge on which is very useful if you're using cocos2d-x because almost all 3rd party plugins are integrated using this. And no other book has included this topic. Also this books includes admob banner integration using JNI. And ad integration, even though this inlcudes basic integration but no other book has even talked about it because revenue source is obviously important thing for any game publisher.
---------------------
Small things:
---------------------
2) Adding minor label effects which other books didn't touch.
3) Android back button
4) Keeping screen alive while using accelerometer
5) New audio engine discussed which again no other book has touched. Although, I still like the old audio system as it gives more flexibility. But this new audio engine is still under production phase, so it will grow better.
**CONS:
---------------------
Small thing
---------------------
1) Reason for not using box2D mentioned that it is no longer active development.
But I feel that its last version is still the one which can produce better physics simulation as compared to other physics engine and is stilly widely used for professional games.
It used cocos2d-x inbuilt physics engine - not very good but not bad. Atleast one game 'external' physics engine should have been discussed as in other book.
2) Although we can simulate physics by using simple shapes like circle/rectangle but I wish that some book would have touched a custom physics body creation. But like other books, this one also lacks it. And it is good if you know how to make custom physics shape for complex looking objects.
---------------------
Major thing
---------------------
*3)* Since, this book was purely for android development, I wish author would have discussed his tips regarding precautions while deploying the game for different android versions(especially Android 5.x where some issues come on running the game)
*4)* I felt that, multi resolution technique discussed was limited and no tips on graphic part was given even related to game covered and it being an android based book, author should have included it in detail as android devices are the most diverse in resolution sizes. This would have helped to set this book differernt from other cocos2d-x book.
(Note: Cocos2d-x by example :beginner's guide is better for learning multi resolution, although it is just for iOS, because it has used these techniques in every game it has covered although explanation is not much detailed)
5) Somewhere I felt that author could have added more information like in fonts regarding bitmap fonts which is just mentioned in a paragraph but didn't covered using code.
PS:
I would recommend this book to beginners only because of some points in PROS section which is actually exclusive to this cocos2d-x book only otherwise no new content is added and the game covered is simple..
Since, it is being published after 5-6 cocos2d-x(v3.x) books (in english), I expected a lot more things (or better to say different things than other books) from this book other than just JNI for which I thank the author...
 

Contents

Setting up your Development Environment
1
Graphics
15
Understanding Game Physics
35
User Input
49
Handling Text and Fonts
65
Audio
81
Creating Particle Systems
97
Adding Native Java Code
113
Index
135
Copyright

Other editions - View all

Common terms and phrases

About the author (2015)

Raydelto Hernandez is a software engineer and university professor living in Santo Domingo, Dominican Republic. He has developed games for BlackBerry 10, Android, and iOS. He currently teaches topics related to game development at INTEC University. At the age of 22, he started teaching at Las Americas Institute of Technology, where he earned the Professor of the Year award many times. Then he the became director of the software development center. He has also taught at UNAPEC University, UNIBE University, and INTEC University, where he is currently a research professor. He is a BlackBerry Certified Builder, Zend Certified Engineer, Certified Java programmer, CompTIA A+ professional, and Microsoft Technology Associate. Raydelto has posted on YouTube dozens of video tutorials on different programming environments, which are also available on his website at www.raydelto.org. Here, you can also find information about his open source projects. Raydelto has founded two technology companies, Soluciones GBH (in 2005) and AST Technology (in 2008), which develop software for all platforms.

Bibliographic information