Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Cocos2d Cross-Platform Game Development Cookbook - Second Edition
  • Table Of Contents Toc
Cocos2d Cross-Platform Game Development Cookbook - Second Edition

Cocos2d Cross-Platform Game Development Cookbook - Second Edition - Second Edition

By : Siddharth Shekar
4.7 (3)
close
close
Cocos2d Cross-Platform Game Development Cookbook - Second Edition

Cocos2d Cross-Platform Game Development Cookbook - Second Edition

4.7 (3)
By: Siddharth Shekar

Overview of this book

Cocos2d is the world’s leading game development framework for developing iOS games. With the introduction of Swift and Spritebuilder, it has become easier than ever to develop the games of your dreams without much effort. With Cocos2d, you can also deploy the game on Android, thereby maximizing profit and reducing development and porting costs. The book starts off with a detailed look at how to implement sprites and animations into your game to make it livelier. You will then learn to add scenes to the game such as the gameplay scene and options scene and create menus and buttons in these scenes, as well as creating transitions between them. From there on, you will get an understanding of how to program user interactions such as tapping, holding, and swiping. You’ll then add accelerometer inputs and physics to the scene, and make objects respond back to the inputs. A game is practically incomplete without audio being added, so this will be covered next. The next section will include ways to add Artificial Intelligence to enemies in the game, allowing them to patrol, chase, and shoot in a projectile manner. You will then learn to use NSUserDefault to save and load game progress, and create and access files using JSON, Plist, and XML files for custom storage and retrieval of data. Then you will learn to add dynamic lighting to your game and will use industry-wide tools such as Texture Packer, Glyph Designer, Physics Editor, Particle Designer, and Sprite Illuminator to create more visually appealing and performance-optimized games. Towards the end of the book, we dive into Apple’s latest programming language—Swift, highlighting the major differences between Objective C and Swift. The book culminates with taking your existing game developed for iOS and porting it to Android, showing you how to install the Android Xcode plugin as well.
Table of Contents (13 chapters)
close
close
12
Index

Preface

Since its inception in 2007, the Apple App Store is still going strong with an average of almost 500 apps added on a daily basis. Out of them, almost 80% of the apps are games. Part of the reason for this is the amazing eco-system created by Apple to make the operating system and IDE available free of charge, making it easy to access for the average developer. The other part is Cocos2d, which is still one of the most widely-used free iOS game-development frameworks that makes games and app development very convenient.

With SpriteBuilder integrating Cocos2d into it, this makes it even more awesome, as now it is even easier to develop a simple prototype of a game without any code. Moreover, with minimum effort the same app or game can be run on a varied number of resolutions. Furthermore, we can now also port these games to Android without any need to rewrite the code. Cross-platform iOS game development, which was a dream for so many years, has now finally become a reality.

As Cocos2d itself has been there since the beginning of the first iOS device, the community is strong and helpful. There are also great tools that have been developed by third-party developers that make Cocos2d, an already awesome framework, even more awesome.

This book takes you through the recipes that are required to make any game. The chapters are laid out in a logical manner so that by following each recipe you will get closer to finishing and porting your game by the end of this book.

Hope to see your creations in the App Store soon.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Cocos2d Cross-Platform Game Development Cookbook - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon