Cocos2D for iPhoneHow to create amazing games in 30 minutes or less
Cocos2DGame framework ported from PythonSource distributedThin OpenGL wrapperObjective C (XCode)iOS: iPhone/iPad/iPod TouchMac OS X
Nodes and spritesNodeparentchildrenpositionrotationscaleSprite : Nodeimage
ActionMoveScaleRotateSequenceRepeatCallFuncMoveBy 10 pixels / 5 sec [node runAction:action]
You are sky ASS
BackgroundGameSceneaddChild: skyaddChild: grassaddChild: ground
Player planeGameSceneaddChild: PlayerPlaneaddChild: plane sprite- angle velocity (constant )Player plane – simple flyPlayerPlane flyPlayerPlane node  MoveBy actionsetPosition – process edges
Player plane – vibrato effectPlayerPlane sprite  MoveBy actionSequence: Up 1, down 2, up 1
ButtonsGameSceneControlLayer NodeButton Node  (with callback function)Sprite
Buttons – fly up/down actionsPlayerPlanegoUpAngle + 5Rotate spriteRecalc movement
Enemy planeSame as PlayerPlaneFly with +5 angle
BulletsPlayerPlane fireCreate Bullet nodePut to the GameSceneSet direction and [Bullet shoot]
Bullets - shootBullet node  MoveBy actionsetPositioncheck if hit enemy plane
Bullets – BOOM!EnemyPlane crashRemove plane spriteShow explosion spriteRestart the game
PROFIT!!!
Cocos2D Features
Box2D/Chipmunk integration
Font rendering
Touch handling
Particles engine
Free and open source
Community
Summary
ContactsStanislavKrasnoyarovcontact@polarowl.comskr@land.ru
Cocos2D

Cocos2D