Cocos2D iOS Meetup
-
Upload
krishna-ramachandran -
Category
Documents
-
view
489 -
download
2
description
Transcript of Cocos2D iOS Meetup
Lets learn Cocos2d together iPhone Developers Roundtable - Boston
Krishna Ramchandran@krishna_nr
Cocos 2D - What?
• Gaming/graphical framework
• 3Fs - fast, flexible and free!
• Easy to use
• Built-in physics engines
Examples: Like Doodle Jump
Examples: Like Angry Birds
Examples: Like Farmville
Proposed Meetup Structure
• Learn in a group!
• Build something fun and awesome
• Make a game that is releasable (optional)
Format
• Have fun!
• Meet every 2-3 weeks at Ubersense
Format
• Part home-work (read a chapter)
• At meetup
• One volunteer to help review
• Review, discuss, hack code
• How does that sound?
Book Reference
http://www.amazon.com/Learn-cocos2d-Game-Development-iOS/dp/143024416X/
Cocos2d Basics
• Scenes
• Director
• Layer
• Sprites, labels, etc
Scenes
• Also called screens or stages
• Only one active at any time
Source: http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:basic_concepts
Director
• Coordinates different scenes
• Responsible for showing, changing, ending scenes
• Handles initialization of OpenGL ES
Layer• Scene is composed of layers
• Handles touch and accelerometer inputs
• Layer contains other layers and sprites
Source: http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:basic_concepts
Sprites• 2D image
• Can be animated, touched, moved, etc
• Can have other sprites as children
• Transforms apply to parent and all children
Scene, layers and sprites
Next Steps
• Buy the book :)
• Meet 2nd week of Jan 6:30 pm
• Read chapters 2, 3, 4 (roughly 80 pages)