TiConf 2014 Game Dev with Titanium and Platino 5/10/14

16
Game Development and Gamification With Titanium, Platino and Hyperloop John Gould, MCTS, TCD CFO, Codex Labs, LLC President, Avatar Software, LLC

description

TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Transcript of TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Page 1: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Game Development and GamificationWith Titanium, Platino and Hyperloop

John Gould, MCTS, TCD

CFO, Codex Labs, LLC

President, Avatar Software, LLC

Page 2: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Avatar Software@AvatarJohnhttp://blog.avatar-soft.com

Codex Labs@CodexLabs / @CodexCastshttp://blog.codexlabs.com

Game DevelopmentComing Soon!

Blogs and Twitter

Page 3: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Why Game Development With Platino?

Development Cost of AAA Titles

Specialized Languages and Complex Engines

Rise of RetroGaming

Use of ExistingSkills in Titanium

Gamification

Page 4: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

So What Can I Start on Right Away?

• Important to Have Realistic Expectations• Types of Games YOU CAN DO TODAY:

• 80’s Arcade-Style (Stay Tuned!)• Board Games• Puzzle• 2D Adventure / Platforming• Educational• Mobile Platform-Centric / 2D Physics

4

Page 5: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Lanica Website: http://lanica.co• Platino modules

Platino Ruble:https://github.com/Lanica/Platino.ruble• Install ruble• Create new Platino project

Demo• Ruble vs. Lanica samples

(Alloy not Included, so use CommonJS!)• Game View• Setting the Scene

How To Get Started

Page 6: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Sprites and SpriteSheets

• Using Lanica Animo Sprites

• Using SpriteSheets in Platino

• Creating Sprites in Platino

6

Page 7: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Basic: Using Sprite Sheets with Transforms

Neat Trick: Intro to Particles!

Background Animations

Page 8: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Action / Arcade Basics – Setting Stuff Up

Start by setting up your in-game elements• (Don’t forget projectiles, explosions, and

other ephemeral objects!)

JavaScript Arrays for keeping track of multiple enemies

Layout “gotcha’s”

Page 9: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Setting up the Game Loop

Set up listeners for touch-screen input• How to tell where the user touched the

screen

Multi-Touch – Module required

Start Your Engines!

Page 10: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Collision Detection

• Here’s where Platino REALLY shines!• Displaying collision effects – particle

time!• Hiding “dead” enemies

Page 11: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Adding sound effects

“Game Over” conditions

Scoring

Levels / Increasing Challenge

Now, for the Polish…

Page 12: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Hyperloop!

• What is it? Ti.Next compiler.

• What does it mean for the future of game development?

• FPS Demo – Game of Life in current Titanium vs. Hyperloop

12

Page 13: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

GameStick Demo?

NOPE!

We’ll keep working on it…

And now for something completely unfortunate…

Page 14: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Gamification

• Definition

• Game Mechanics – Adding a Point System to your apps

• Levels, Leaderboards and other Metaphors

• Dynamics that Drive User Adoption

• Be creative!

Page 15: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Conclusion

• This is realistically within your grasp!

• Start by Doing

• Then Start Over by Planning

• Have Fun!

Page 16: TiConf 2014 Game Dev with Titanium and Platino 5/10/14

Questions?

Questions