cross-platform game dev w/ cocossharp

Post on 07-Aug-2015

95 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Cross-platform Game Dev w/ CocosSharp

with Alex Sorokoletov and Alexey Strakh

Agenda

• Mobile game development• Cocos2d• Framework• UI elements• Animations• Navigation• Native UI• Advanced topics

Mobile game development

• Why games?• Most rated• Most downloaded• Stores tops• Top grossing

Stores tops

Top grossing

Daily stats (App Store):

• Clash of Clans$1.6M, 140k installs, 4.5M users

• Game of War - Fire Age$1M, 40k installs, 3M users

• Candy Crush Saga$0.9M, 100k installs, 11.5M users

About Cocos2d

• Cocos2d• MonoGame• CocosSharp

Demo 1

Creating new game using Xamarin/CocosSharp

Components and layers

• Node• Sprite• Layer• Scene• Director• AppDelegate

UI Elements

• CCLabel and Text• CCMenuItem Image/Label/Toggle• CCMenu

Animations

• Apply to any node• Show, Hide, Move, Rotate, Fade, Skew…• Easing functions• Chaining• Custom functions

Navigation between screens

• DefaultDirector• Transitions (easing, rotate, slides, etc.)• Navigation Stack (push, pop, replace)

var congratsScene = Scenes.CongratsScene(this.Window);var congratsSceneAnimation = new CCTransitionFade(0.5f, congratsScene);DefaultDirector.ReplaceScene(congratsSceneAnimation);

Demo 2. Luau

• Bootstrap• Scenes• Layers• Animations• Navigation

Mixing CocosSharp and native UI

• Native Storyboards• Application bootstrap• Start/Exit CocosSharp game

Advanced topics: audio, particles, physics• Audio engine• Particles system• Physics (box2d)• Leader board integration• Power of Portable Class Libraries (PCL) and Xamarin

Q&A

• Alexey Strakh (@alexeystrakh)• Alex Sorokoletov (@alexsorokoletov)

top related