Cocos2D Game Development Essentials
eBook - ePub

Cocos2D Game Development Essentials

Ben Trengrove

Partager le livre
  1. 136 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Cocos2D Game Development Essentials

Ben Trengrove

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Cocos2D Game Development Essentials est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Cocos2D Game Development Essentials par Ben Trengrove en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatique et Programmation d'appareils mobiles. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781784390327

Cocos2D Game Development Essentials


Table of Contents

Cocos2D Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
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
2. Nodes, Sprites, and 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 practice
Adding 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
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 screen
Detecting collisions
The next step
Summary
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
5. User Interaction and Interface
Detecting 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
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

Cocos2D Game Development Essentials

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: January 2015
Production reference: 1190115
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-032-7
www.packtpub.com
Cover image by Ben Trengrove ()

Credits

Author
Ben Trengrove
Reviewers
K. Aava Rani
Sergio MartĂ­nez-Losa Del RincĂłn
Allen Sherrod
Commissioning Editor
Akram Hussain
Acquisition Editor
Richard Gall
Content Development Editor
Poonam Jain
Technical Editor
Parag Topre
Copy Editor
Relin Hedly
Project Coordinator
Mary Alex
Proofreaders
Simran Bhogal
Linda Morris
Indexer
Mariammal Chettiyar
Graphics
Abhinash Sahu
Production Coordinator
Alwin Roy
Cover Work
Alwin Roy

About the Author

Ben Trengrove is an experienced iOS developer who started developing with the release of the first iOS SDK. He spent 3 years as the senior developer at Shiny Things (http://getshinythings.com), where he lead the creation of all Shiny Things games using Cocos2d. These apps have been featured as the editor's choice by Apple around the world. Today, Ben runs a mobile app agency that is based out of Canberra, Australia—Stripy Sock (http://stripysock.com.au).

About the Reviewers

K. Aava Rani is the cofounder of CulpzLab Pvt Ltd, a software company, with 10 years of experience in game technologies. A successful blogger and a technologist, she switched her focus to game development in the year 2004. Since then, she has produced a number of game titles and has provided art and programming solutions to Unity developers across the globe. She is based in New Delhi, India. Aava Rani has been the recipient of several prestigious awards, including Adobe for Game Technology Expert 2012 ...

Table des matiĂšres