Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

CocosSharp_XHackNight_07feb

349 views

Published on

Published in: Mobile
  • Be the first to comment

  • Be the first to like this

CocosSharp_XHackNight_07feb

  1. 1. GO GAGA OVER GAMING
  2. 2. ABOUT.ME XHacknight-Feb 07 2  Vidyasagar Machupalli  Microsoft MVP - Games for Windows  @iAMVMac  About.Me/mscvidyasagar
  3. 3. TRENDS XHacknight-Feb 07 3
  4. 4. GAMING RULES THE APP STORES XHacknight-Feb 07 4
  5. 5. MOBILE GAMING XHacknight-Feb 07 5
  6. 6. XHacknight-Feb 07 6
  7. 7. FOR THE HACK • CocosSharp / MonoGame XHacknight-Feb 07 7
  8. 8. 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.
  9. 9. XHacknight-Feb 07 9 Cross Platform and Open Source
  10. 10. CCAPPLICATIONDELEGATE XHacknight-Feb 07 10  Similar to UIApplicationDelegate in IOS  handles application lifecycle events
  11. 11. XHacknight-Feb 07 11 P R O J E C T S E T U P
  12. 12. CCApplicationDelegate ApplicationDidFinishLaunching ApplicationDidEnterBackground ApplicationWillEnterForeground XHacknight-Feb 07 12
  13. 13. XHacknight-Feb 07 13 • Application • Scenes • Layers • Sprites • Actions • Other cool stuff - Particle systems, audio, physics … Index
  14. 14. 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
  15. 15. VISUAL TREE/SCENE GRAPH CCScene > CCLayer > CCSprite/CCSpriteBatch XHacknight-Feb 07 15
  16. 16. 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
  17. 17. CCTOUCH XHacknight-Feb 07 17 TouchesBegan, TouchesMoved, TouchesEnded, etc
  18. 18. MANY MORE… • CCParallax • Particle Systems • Audio • Physics • Accelerometer XHacknight-Feb 07 18
  19. 19. ROME WAS NOT BUILT IN DAY XHacknight-Feb 07 19
  20. 20. HAPPY HACKING XHacknight-Feb 07 20

×