diff options
author | Justin Worthe <justin.worthe@entelect.co.za> | 2014-07-31 16:45:33 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@entelect.co.za> | 2014-07-31 16:45:33 +0200 |
commit | 0a4b32158d6ddd17eb9df21ff5940c736eb8208e (patch) | |
tree | dfba00090556cbb2baf2e4a99d7c3929c0341b49 /templates/_main.js.tpl | |
parent | a5718bd0e29a6245d2e82a272a616782187ee283 (diff) |
Attempt at adding orientation based input
Diffstat (limited to 'templates/_main.js.tpl')
-rw-r--r-- | templates/_main.js.tpl | 3 |
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 %>')); <% }); %> |