1. iOS Game Development
When Cocoa Met Cocos...
Joseph Ku (Chieh-Fang Ku)
chiehfang.ku@gmail.com
2. Outline
Where to start?... Why cocos2d?
Let Apple help you! Game design concepts
Piece of cake? Elements of cocos2d
Game engines for Last but not least...
iOS?
References
What’s cocos2d?
v1.0.2
Build 201105100800
3. Who am I?
Joseph Ku (Chieh-Fang Ku)(@josephku)
I started to learn programming since 1990,
because I wanted to be a game
programmer.
A video gamer since 1985
A Linux user since 1996
Ruby lover and Guitar Hero rocker
4. Who am I?
Game development history
1989: My first board game - 喰 (not published)
1991: My first RPG game - The Legend of Love (not for public)
All written in x86 Assembly language
1992: Audio card driver of Rich 2
(...Time flies......)
To be continue...
5. Who am I?
Game development history
2003: Former contributor of Crystal Space (3D game engine)
2004: Experimental 3D game engine - JBOX
(...Time flies again......)
2010: My second board game - 5 Elements (Ready to sell)
Nobody bird me...... Orz
6. Before we start...
Don’t take any notes. This slide will be
published with CC BY-NC-ND.
You could interrupt me anytime.
13. Piece of cake?
It’s is not as easy as you thought!
Better than developing games on PS2
PS2: CPU 294.912MHz, RAM 32MB
iPhone: 800 MHz, RAM 512MB
Multiple function device
14. Babe, you are not alone
Backgrounded
Phone call
Home button pressed
SMS message
etc.
15. Endless tuning
One second is a long time
Load the assets you need interactively with
the player
Optimize loading times
Playing again and again and again
16. Game Engines for iOS
iTorque 2D
Full source. No royalties. One price.
$99
Corona
Free as a trial
$199/year
17. Game Engines for iOS
Unity
Professional 3D game engine
$400
SIO2 Engine
3D game engine
$499.99. Including source code.
19. What’s cocos2d?
Accurate name: cocos2d for iPhone
Based on Cocos2d which was written in
Python
Written in Objective-C
App Store approved
More than 2500 games use it
20. Why cocos2d?
Free.
Open source game engine
MIT license
Integrated with Box2D and Chipmunk
Supports Retina Display
Integrated Pause/Resume
22. Game design concepts
Render Frame -> Game Sim -> User Input
Render Frame -> User Input -> Game Sim
CADisplayLink -> Render Frame -> User Input
-> Game Sim
26. Last but not least...
External display support
New UIScreen
“View Programming Guide for iOS”
Windows -> Displaying Content on an
External Display
Added on 2011-03-08
29. Last but not least...
Keep watching on AirPlay APIs
How about writing a game for Mac App
Store?
Be a real game developer
Game Programming Gems series
Game Developer Magazine