Upload
vidyasagar-machupalli
View
70
Download
0
Tags:
Embed Size (px)
Citation preview
ABOUT.ME
XHacknight-Feb 07 2
Vidyasagar Machupalli
Microsoft MVP - Games for Windows
@iAMVMac
About.Me/mscvidyasagar
WHAT IS COCOSSHARP?
XHacknight-Feb 07 8
CocosSharp is a cross-platform library for building 2D games.CocosSharp is an open source library and is built on top of the MonoGame engine and the fine work from the Cocos2D, Cocos2D-x and Cocos2D-XNA communities.
CCAPPLICATIONDELEGATE
XHacknight-Feb 07 10
Similar to UIApplicationDelegate in IOS
handles application lifecycle events
CCApplicationDelegate ApplicationDidFinishLaunching
ApplicationDidEnterBackground
ApplicationWillEnterForeground
XHacknight-Feb 07 12
XHacknight-Feb 07 13
• Application
• Scenes
• Layers
• Sprites
• Actions
• Other cool stuff - Particle systems, audio, physics …
Index
CCAPPLICATION
• Creates and initializes the graphics device
• Sets the application delegate
• Starts the game
var app = new CCApplication ();
app.ApplicationDelegate = new GoneBananasApplicationDelegate ();
app.StartGame ();
XHacknight-Feb 07 14
CCACTION
• Actions perform tasks on nodes
• For example, animating sprites
• Run multiple actions sequentially using CCSequence
• Run multiple actions in parallel using CCSpawn
XHacknight-Feb 07 16