Your SlideShare is downloading. ×
0
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Cocos2D
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Cocos2D

2,667

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,667
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
63
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Cocos2D for iPhone
    How to create amazing games in 30 minutes or less
  • 2. Cocos2D
    Game framework ported from Python
    Source distributed
    Thin OpenGL wrapper
    Objective C (XCode)
    iOS: iPhone/iPad/iPod Touch
    Mac OS X
  • 3.
  • 4.
  • 5. Nodes and sprites
    Node
    parent
    children
    position
    rotation
    scale
    Sprite : Node
    image
  • 6.
  • 7. Action
    Move
    Scale
    Rotate
    Sequence
    Repeat
    CallFunc
    MoveBy 10 pixels / 5 sec
    [node runAction:action]
  • 8.
  • 9. You are sky ASS
  • 10. Background
    GameScene
    addChild: sky
    addChild: grass
    addChild: ground
  • 11. Player plane
    GameScene
    addChild: PlayerPlane
    addChild: plane sprite
    - angle
    • velocity (constant )
  • Player plane – simple fly
    PlayerPlane fly
    PlayerPlane node  MoveBy action
    setPosition – process edges
  • 12. Player plane – vibrato effect
    PlayerPlane sprite  MoveBy action
    Sequence: Up 1, down 2, up 1
  • 13. Buttons
    GameScene
    ControlLayer Node
    Button Node (with callback function)
    Sprite
  • 14. Buttons – fly up/down actions
    PlayerPlanegoUp
    Angle + 5
    Rotate sprite
    Recalc movement
  • 15. Enemy plane
    Same as PlayerPlane
    Fly with +5 angle
  • 16. Bullets
    PlayerPlane fire
    Create Bullet node
    Put to the GameScene
    Set direction and [Bullet shoot]
  • 17. Bullets - shoot
    Bullet node  MoveBy action
    setPosition
    check if hit enemy plane
  • 18. Bullets – BOOM!
    EnemyPlane crash
    Remove plane sprite
    Show explosion sprite
    Restart the game
  • 19.
  • 20. PROFIT!!!
  • 21.
  • 22. Cocos2D Features
  • 23. Box2D/Chipmunk integration
  • 24. Font rendering
  • 25. Touch handling
  • 26. Particles engine
  • 27. Free and open source
  • 28. Community
  • 29. Summary
  • 30. Contacts
    StanislavKrasnoyarov
    contact@polarowl.com
    skr@land.ru

×