Limit search to available items
Book Cover
E-book
Author Trengrove, Ben

Title Cocos2D Game Development Essentials
Published Packt Publishing, 2015

Copies

Description 1 online resource
Contents Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Cocos2d; An introduction to Cocos2d; Installing Cocos2d; Installing Cocos2d with the installer; Creating a Hello World project; Installation for Android; Template project code breakdown; IntroScene.m; The HelloWorldScene.m class; Summary; Chapter 2: Nodes, Sprites, & Scenes; The building blocks-nodes; Children nodes; Adding children; Removing children; Drawing order of the children nodes; Working with multiple coordinate systems; Sprites
Putting it into practiceAdding nodes to the scene; Detecting touches and responding; The next step; The Cocos2d update loop; Scenes; Scene life cycle; Creating a CCScene; Transitioning to another scene; Putting it into practice; Summary; Chapter 3: SpriteBuilder; Creating a new project; The Main editor window; The Resource pane; The Options pane; The Timeline pane; Creating Flappy Square; Creating a new scene/layer; Linking to a SpriteBuilder scene in code; Enabling physics in SpriteBuilder; Connecting SpriteBuilder objects to Xcode properties; Creating reusable components
Moving obstacles across the screenDetecting collisions; The next step; Summary; Chapter 4: Animation with SpriteBuilder; Adding sprites to SpriteBuilder; Creating sprite frame animations; Switching out the obstacle image; Particle systems; Designing a particle system for our character; Adding a SpriteBuilder particle system in code; Final polish to Flappy Bird; Keyframe animation in SpriteBuilder; Animation in code; Moving, scaling, and rotating; Chaining actions together; Running actions simultaneously; Repeating actions; Running code on completion of an animation; Summary
Chapter 5: User Interaction and InterfaceDetecting touches; Getting the touch location; Dragging a node; Adding buttons to your scene; Accepting user input with form elements; Presenting data in a table with CCTableView; Creating a CCTableView data source; Adding a CCTableView node to the scene; Summary; Chapter 6: Physics Engines; Introducing physics engines; Adding joints; Adding a sprite joint; Dragging an object against a spring joint; Firing objects from the catapult; Creating a motor; The next step; Summary; Index
Summary Focusing on the multiplatform nature of Cocos2D, this fast, fun, and helpful guide provides you with the best practices and sharpest techniques to turn your ideas into reality. Beginning with the basics to give you a solid foundation of knowledge, such as how to display sprites on screen and organizing your game into different scenes, you will then discover how to use Cocos2D's in-built graphics editor, SpriteBuilder, to lay out your scenes, design animations, and configure complex physics interactions. You will also find out how to make your game interactive, as the book explores how to accept input touches and the accelerator. The book is tailored to new users and also those who are upgrading from the old version
Notes Print version record
Subject Video games -- Design
Mobile games -- Programming
Video games -- Design
Form Electronic book
ISBN 1322831742
9781322831749
9781784391294
1784391298