Skip to content

A clean, minimal Cocos2D iPhone source code example showing you how to drag a sprite across the screen.

Notifications You must be signed in to change notification settings

NatWeiss/SpriteDragger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpriteDragger

A clean, minimal Cocos2D iPhone example project showing you how to drag a sprite around the screen.

Topics covered in the source code:

  • Creating a minimal App Delegate class to handle creating the window, the GL view and initialize Cocos2D iPhone
  • Receiving ccTouch events from Cocos2D and translating them into dragging a CCSprite
  • Animating the sprite via runAction
  • CCDirector, CCScene, CCSprite, CCColorLayer, CCSequence, CCScaleBy

Notes:

  • Includes an example Xcode project
  • Uses Cocos2d-iPhone version 2.1
  • Project is purposefully non-ARC

About

A clean, minimal Cocos2D iPhone source code example showing you how to drag a sprite across the screen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published