Cocos2D iOS Meetup

17
Lets learn Cocos2d together iPhone Developers Roundtable - Boston Krishna Ramchandran @krishna_nr

description

Cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications. Cocos2d is powerful way to create compelling 2D graphics using OpenGL and Objective-C. Its powerful enough to create games like Angry Birds. I am starting to explore Cocos2D for my company's work, and I want to get together with a group of people interested in learning this framework together. My ideal cohort for this meetup are people with working objective C knowledge. You don't need to be an expert but should be comfortable with various iOS frameworks. You are really motivated to learn Cocos2d and plan to be at most sessions to get the most out of the proposed goals. So what are the goals? Here is what I would love to do for this meetup (but am totally open to suggestions from the group): 1) We'll use "Learn cocos2d 2: Game Development for iOS" (http://www.amazon.com/Learn-cocos2d-Game-Development-iOS/dp/143024416X) as our guide book. 2) We meet every couple of weeks. The catch is that we pre read a certain portion of the above book as homework. We'll try not to make the homework part onerous. 3) When we meet, we spend an hour or two discussing Cocos2d together and hack up some code. A member of the group could volunteer to summarize the reading material that was homework assignment. This does two things. It reinforces concepts for those who have read the portion being presented. And secondly it helps the presenter crystallize concepts that he/she is presenting to the group. The great thing about this is that we can have discussions around key concepts if something is hard to understand.

Transcript of Cocos2D iOS Meetup

Page 1: Cocos2D iOS Meetup

Lets learn Cocos2d together iPhone Developers Roundtable - Boston

Krishna Ramchandran@krishna_nr

Page 2: Cocos2D iOS Meetup

Cocos 2D - What?

• Gaming/graphical framework

• 3Fs - fast, flexible and free!

• Easy to use

• Built-in physics engines

Page 3: Cocos2D iOS Meetup

Examples: Like Doodle Jump

Page 4: Cocos2D iOS Meetup

Examples: Like Angry Birds

Page 5: Cocos2D iOS Meetup

Examples: Like Farmville

Page 6: Cocos2D iOS Meetup

Proposed Meetup Structure

• Learn in a group!

• Build something fun and awesome

• Make a game that is releasable (optional)

Page 7: Cocos2D iOS Meetup

Format

• Have fun!

• Meet every 2-3 weeks at Ubersense

Page 8: Cocos2D iOS Meetup

Format

• Part home-work (read a chapter)

• At meetup

• One volunteer to help review

• Review, discuss, hack code

• How does that sound?

Page 9: Cocos2D iOS Meetup

Book Reference

http://www.amazon.com/Learn-cocos2d-Game-Development-iOS/dp/143024416X/

Page 10: Cocos2D iOS Meetup

Cocos2d Basics

• Scenes

• Director

• Layer

• Sprites, labels, etc

Page 11: Cocos2D iOS Meetup

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

Page 12: Cocos2D iOS Meetup

Director

• Coordinates different scenes

• Responsible for showing, changing, ending scenes

• Handles initialization of OpenGL ES

Page 13: Cocos2D iOS Meetup

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

Page 14: Cocos2D iOS Meetup

Sprites• 2D image

• Can be animated, touched, moved, etc

• Can have other sprites as children

• Transforms apply to parent and all children

Page 15: Cocos2D iOS Meetup

Scene, layers and sprites

Page 16: Cocos2D iOS Meetup

Next Steps

• Buy the book :)

• Meet 2nd week of Jan 6:30 pm

• Read chapters 2, 3, 4 (roughly 80 pages)

Page 17: Cocos2D iOS Meetup

Thanks for coming

[email protected]

Feedback?