From 0a4b32158d6ddd17eb9df21ff5940c736eb8208e Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 31 Jul 2014 16:45:33 +0200 Subject: Attempt at adding orientation based input --- templates/_main.js.tpl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates') 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 %>')); <% }); %> -- cgit v1.2.3