20
GO GAGA OVER GAMING

CocosSharp_XHackNight_07feb

Embed Size (px)

Citation preview

GO GAGA OVER GAMING

ABOUT.ME

XHacknight-Feb 07 2

Vidyasagar Machupalli

Microsoft MVP - Games for Windows

@iAMVMac

About.Me/mscvidyasagar

TRENDS

XHacknight-Feb 07 3

GAMING RULES THE APP STORES

XHacknight-Feb 07 4

MOBILE GAMING

XHacknight-Feb 07 5

XHacknight-Feb 07 6

FOR THE HACK

• CocosSharp / MonoGame

XHacknight-Feb 07 7

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.

XHacknight-Feb 07 9

Cross Platform and Open Source

CCAPPLICATIONDELEGATE

XHacknight-Feb 07 10

Similar to UIApplicationDelegate in IOS

handles application lifecycle events

XHacknight-Feb 07

11

PROJECT

SETUP

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

VISUAL TREE/SCENE GRAPH

CCScene > CCLayer > CCSprite/CCSpriteBatch

XHacknight-Feb 07 15

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

CCTOUCH

XHacknight-Feb 07 17

TouchesBegan, TouchesMoved, TouchesEnded, etc

MANY MORE…

• CCParallax

• Particle Systems

• Audio

• Physics

• Accelerometer

XHacknight-Feb 07 18

ROME WAS NOT BUILT IN DAY

XHacknight-Feb 07 19

HAPPY HACKING

XHacknight-Feb 07 20