Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
RubyMotion iOS Development Essentials

You're reading from  RubyMotion iOS Development Essentials

Product type Book
Published in Jul 2013
Publisher Packt
ISBN-13 9781849695220
Pages 262 pages
Edition 1st Edition
Languages

Table of Contents (19) Chapters

RubyMotion iOS Development Essentials
Credits
About the Authors
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Getting Ready for RubyMotion 2. Instant Gratification – Your First Application 3. Evolution – From Objective-C to RubyMotion 4. Mastering MVC Paradigm 5. User Interface – Cosmetics for Your App 6. Device Capability – Power Unleashed 7. Interface Builder and WebView – More Goodies! 8. Testing – Let's Fail Gracefully 9. Creating a Game 10. Getting Ready for the App Store 11. Extending RubyMotion Index

Cocos2D


Cocos2D is a powerful library for game development, which saves a lot of time by handling trivial things while building your game. Common things that are regularly needed for game development, such as direction, sprite, cool graphical effects, animations, physics libraries, sound engines, and a lot more are already provided by libraries and APIs.

Cocos2D organizes game development like the making of a movie where you are made to sit in the director's chair. For example, you will have a scene for the startup menu of the game, another for the main game, and then another for the game over scene with options that concludes the playing episode. You have to literally use the Director class to create a director object, which drives the whole application forward.

All the basic tasks, such as starting the game, pausing the game, and creating various scenes are handled by Cocos2D.

Inside the scenes, you can have a number of layers that contain nodes such as sprites, labels, menus, and more. These...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}