Cocos2D Game Development Essentials
eBook - ePub

Cocos2D Game Development Essentials

Ben Trengrove

Compartir libro
  1. 136 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Cocos2D Game Development Essentials

Ben Trengrove

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Cocos2D Game Development Essentials un PDF/ePUB en línea?
Sí, puedes acceder a Cocos2D Game Development Essentials de Ben Trengrove en formato PDF o ePUB, así como a otros libros populares de Informatique y Programmation d'appareils mobiles. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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 ...

Índice