GAME ON!
Developing HTML5 Games
Rajasekar
@rajzshkr
What/Why
Game?
Gaming Industry
Game Development Process
• Ideation
• Concept Document
• Game Design
• Leader boards/Profiling/ Points
• Art Design
• Coding
• Physics engines/AI Engines/ Testing
• Release
• Upgrading
Gaming Platforms
Why Hybrid Game?
Hybrid Frameworks
• Easel JS
• Construct 2
• Three.js
• Lime JS
• enchant.js
• Phaser JS
SRC - http://html5gameengine.com/
Anatomy of a Game
LOGIC JavaScript code
GRAPHICS canvas
INPUT onkeydown, onmousedown
SOUND Audio
MUSIC Audio
MULTIPLAYER Ajax, Web sockets
GAME ASSETS Images, Audio, Video and Binary
supported by browsers
Initiate Phaser
var game = new Phaser.Game(400, 490, Phaser.AUTO,
'game_div');
Gaming Logic
var main_state = {
preload: function() {
// Function called first to load all the assets
},
create: function() {
// Fuction called after 'preload' to setup the game
},
update: function() {
// Function called 60 times per second
},
};
Start the game
game.state.add('main', main_state);
game.state.start('main');

Html5 game development