![Page 1: TiConf 2014 Game Dev with Titanium and Platino 5/10/14](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/1.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/2.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/5.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/7.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/10.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/12.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/13.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/14.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/15.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062418/554f5ea4b4c9058a148b460c/html5/thumbnails/16.jpg)
Questions?
Questions