XHackers GameDev / Android LolliPop / Xamarin Forms

  • View
    299

  • Download
    12

  • Category

    Mobile

Preview:

Citation preview

X platform GameDev CocosSharp

VIDYASAGAR MACHUPALLI

MICROSOFT MVP - GAMES FOR WINDOWS

@IAMVMAC

ABOUT.ME/MSCVIDYASAGAR

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.

XH

acke

rs - Dec 2

0

3Cross Platform and Open Source

XH

acke

rs - Dec 2

0

4CCApplicationDelegate

Similar to UIApplicationDelegate in IOS

handles application lifecycle events

5

XHackers - Dec 20

PROJECT

SETUP

XH

acke

rs - Dec 2

0

6

CCApplicationDelegate ApplicationDidFinishLaunching

ApplicationDidEnterBackground

ApplicationWillEnterForeground

XH

acke

rs - Dec 2

0

7

• Application

• Scenes

• Layers

• Sprites

• Actions

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

Index

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 ();

XH

acke

rs - Dec 2

0

9Visual Tree/Scene Graph

CCScene > CCLayer > CCSprite/CCSpriteBatch

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

XH

acke

rs - Dec 2

0

11CCTouch

TouchesBegan, TouchesMoved, TouchesEnded, etc

XH

acke

rs - Dec 2

0

12Many More…

CCParallax

Particle Systems

Audio

Physics

Accelerometer

XH

acke

rs - Dec 2

0

13HAPPY NEW YEAR