iPhone Game Development - University of Miami

peruvianwageslaveInternet and Web Development

Feb 5, 2013 (4 years and 7 months ago)

122 views

iPhone Game
Development

By Andres Acevedo

Undergrad Student, College of Arts and Sciences

University of Miami

1
/24

Introduction



Previous knowledge in Java


Idea of creating a game


What type of game?


What do I need to do that?

2
/24

Introduction (cont)



iPhone

Game Development


To overcome:


No Macintosh


No previous knowledge


in
iPhone

development


No knowledge in


objective
-
C programming






3
/24

Structure of Presentation



Part I: Hardware requirements and possible
solutions



Part II: Setting up projects using
Xcode

SDK
and Interface Builder



Part III: Cocos2D Framework for developing
iPhone

games



4
/24

Part I

Hardware requirement (and Possible
solutions)



Development must be


done in a Macintosh machine



Intel based Processor



Updated version of OS X


Leopard (10.5.7) or


later to install SDK

5
/24

Hardware requirement (and Possible solutions)




Web based application frameworks


Phonegap

&
Appcelerator


HTML,
Javascript
, CSS, etc.



Install Mac OS X on my PC


OSX86 project


Multiple methods of


installation


6
/24

Hardware requirement (and Possible solutions)

Hacking Methods



Kernel Hacks



Boot loader and Emulators



Live DVD



(www.insanelymac.com)

7
/24

Part II



Setting up projects using
Xcode

SDK and
Interface Builder

8
/24

Setting up projects using
Xcode

SDK and Interface Builder


Xcode

tools package



Xcode

IDE



Interface Builder (IB)



iPhone

Simulator

9
/24

Setting up projects using
Xcode

SDK and Interface Builder

Xcode

IDE



Source code supported natively:


C, C++, Fortran, objective
-
C, Java,
AppleScript, Python and Ruby


iPhone

apps: cocoa touch (objective
-
C
language)

10
/24

Setting up projects using
Xcode

SDK and Interface Builder

Cocoa touch Classes



Implementation Files


Header Files

11
/24

Setting up projects using
Xcode

SDK and Interface Builder

Interface Builder



Buttons, sliders, menus, etc

12
/24

Setting up projects using
Xcode

SDK and Interface Builder

iPhone

Simulator



Virtual phone


No accelerometer


No camera






Note: While testing in the simulator execution time might
not be the same!

13
/24

Setting up projects using
Xcode

SDK and Interface Builder

When to execute actions?



Different types of touches!


Touch up inside


Touch drag outside


Touch drag exit

14
/24

Setting up projects using
Xcode

SDK and Interface Builder

To consider when Writing
iPhone

apps



One application at a time (besides OS)


One window


Limited response time


Limited screen size and resources


Screen : 480 x 320


Processor: 600
mhz


Memory 256 MB


Storage 32 GB


15
/24

Part III



Cocos2D Framework



16
/24

Cocos2D Framework

Cocos2D Key features



Transitions between scenes


Sprite & sprite sheet creation


Effects (lens, ripple, waves, twirl, etc..)


Actions (rotation, movement, rev
movement)


Menus, Buttons (customized)


Particle system

17
/24

Cocos2D Framework

Basic concepts to understand when using
cocos2D



Scenes


Director


Layer


Sprites

18
/24

Cocos2D Framework

Scene

19
/24

Cocos2D Framework

Director









20
/24

Cocos2D Framework

Layers



21
/24

Cocos2D Framework

Sprites



22
/24

Conclusion



Solutions to develop
iPhone

apps



Concepts of
Xcode

and Interface Builder



Cocos2D to assist game development

23
/24





Thank you!








24
/24