Cocos2D Game Development Essentials
eBook - ePub

Cocos2D Game Development Essentials

Ben Trengrove

Buch teilen
  1. 136 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Cocos2D Game Development Essentials

Ben Trengrove

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Cocos2D Game Development Essentials als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Cocos2D Game Development Essentials von Ben Trengrove im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatique & Programmation d'appareils mobiles. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

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 ...

Inhaltsverzeichnis