blob: 6a559dbef80cc13975bd212fbb6a97b1e6d6b92b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
'use strict';
//global variables
window.onload = function () {
var game = new Phaser.Game(<%= gameWidth %>, <%= gameHeight %>, Phaser.AUTO, '<%= _.slugify(projectName) %>');
var Orientation = require('./plugins/orientation');
game.orientation = new Orientation();
// Game States
<% _.forEach(gameStates, function(gameState) { %>game.state.add('<%= gameState.shortName %>', require('./states/<%= gameState.shortName %>'));
<% }); %>
game.state.start('boot');
};
|