summaryrefslogtreecommitdiff
path: root/templates/_main.js.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_main.js.tpl')
-rw-r--r--templates/_main.js.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/_main.js.tpl b/templates/_main.js.tpl
index 0b1ddb9..6a559db 100644
--- a/templates/_main.js.tpl
+++ b/templates/_main.js.tpl
@@ -4,6 +4,9 @@
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 %>'));
<% }); %>