240 likes | 514 Views
iPhone Game Development. By Andres Acevedo Undergrad Student, College of Arts and Sciences University of Miami. Introduction Previous knowledge in Java Idea of creating a game What type of game? What do I need to do that?. Introduction (cont) iPhone Game Development To overcome:
E N D
iPhone Game Development By Andres Acevedo Undergrad Student, College of Arts and Sciences University of Miami
Introduction • Previous knowledge in Java • Idea of creating a game • What type of game? • What do I need to do that?
Introduction (cont) • iPhone Game Development • To overcome: • No Macintosh • No previous knowledge in iPhone development • No knowledge in objective-C programming
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
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
Web based application frameworks • Phonegap & Appcelerator • HTML, Javascript, CSS, etc. • Install Mac OS X on my PC • OSX86 project • Multiple methods of installation Hardware requirement (and Possible solutions)
Hacking Methods • Kernel Hacks • Boot loader and Emulators • Live DVD • (www.insanelymac.com) Hardware requirement (and Possible solutions)
Part II Setting up projects using Xcode SDK and Interface Builder
Xcode tools package • Xcode IDE • Interface Builder (IB) • iPhone Simulator 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) Setting up projects using Xcode SDK and Interface Builder
Cocoa touch Classes • Implementation Files • Header Files Setting up projects using Xcode SDK and Interface Builder
Interface Builder • Buttons, sliders, menus, etc 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! 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 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 Setting up projects using Xcode SDK and Interface Builder
Part III 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 Cocos2D Framework
Basic concepts to understand when using cocos2D • Scenes • Director • Layer • Sprites Cocos2D Framework
Scene Cocos2D Framework
Director Cocos2D Framework
Layers Cocos2D Framework
Sprites Cocos2D Framework
Conclusion • Solutions to develop iPhone apps • Concepts of Xcode and Interface Builder • Cocos2D to assist game development