developing native cross platform games on cocos2dx2

Post on 22-Nov-2014

402 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Tim and Daniel's presentation of how to develop a native cross platform game using Cocos2dx, and presentation of My Spoon

TRANSCRIPT

Developing native cross-platform games

using cocos2dx

About us

Going multiplatform: Which way?

+ Fast+ Direct access to hardware + Using native graphic interface - Platform setup- Compiler flags might be

needed

+ Available on every platform + “Hot new thing“- Slow- Every browser uses the WC3 standards….

NOT

Cocos2d-x

Cocos2d-x workflow

Classes

Resources

win32

Android

iOS

WP8

Cocos2d-x Features:

• Easy use of touch and gyro• Powerfull sprite system• Box2D physics• Garbage collection• Wrapped system UI components• Many extra features• Direct use of OpenGL ES/DirectX possible

Overview: CCScenes

Menu Scene Game Scene

CCTransition

Overview: CCNode hierarchy

CCSprites, etc.

CCLayer

CCScene Game Scene

Background Layer

Sprites

Game Layer

Player Enemies

HUD Layer

Score Lives

Platform Differences

• Resource limitations• Many resolutions and aspect ratios• Huge performance gap• Packaging behaviours

Live Examples

www.mrskyjump.com/~tim/MySpoonSourceCode.zip

top related