13
X platform GameDev CocosSharp VIDYASAGAR MACHUPALLI MICROSOFT MVP - GAMES FOR WINDOWS @IAMVMAC ABOUT.ME/MSCVIDYASAGAR

XHackers GameDev / Android LolliPop / Xamarin Forms

Embed Size (px)

Citation preview

Page 1: XHackers GameDev / Android LolliPop / Xamarin Forms

X platform GameDev CocosSharp

VIDYASAGAR MACHUPALLI

MICROSOFT MVP - GAMES FOR WINDOWS

@IAMVMAC

ABOUT.ME/MSCVIDYASAGAR

Page 2: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

2What is CocosSharp?

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.

Page 3: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

3Cross Platform and Open Source

Page 4: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

4CCApplicationDelegate

Similar to UIApplicationDelegate in IOS

handles application lifecycle events

Page 5: XHackers GameDev / Android LolliPop / Xamarin Forms

5

XHackers - Dec 20

PROJECT

SETUP

Page 6: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

6

CCApplicationDelegate ApplicationDidFinishLaunching

ApplicationDidEnterBackground

ApplicationWillEnterForeground

Page 7: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

7

• Application

• Scenes

• Layers

• Sprites

• Actions

• Other cool stuff - Particle systems, audio, physics …

Index

Page 8: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

8CCApplication

Creates and initializes the graphics device

Sets the application delegate

Starts the game

var app = new CCApplication (); app.ApplicationDelegate = new GoneBananasApplicationDelegate ();app.StartGame ();

Page 9: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

9Visual Tree/Scene Graph

CCScene > CCLayer > CCSprite/CCSpriteBatch

Page 10: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

10CCAction

Actions perform tasks on nodes

For example, animating sprites

Run multiple actions sequentially using CCSequence

Run multiple actions in parallel using CCSpawn

Page 11: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

11CCTouch

TouchesBegan, TouchesMoved, TouchesEnded, etc

Page 12: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

12Many More…

CCParallax

Particle Systems

Audio

Physics

Accelerometer

Page 13: XHackers GameDev / Android LolliPop / Xamarin Forms

XH

acke

rs - Dec 2

0

13HAPPY NEW YEAR