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 /game/main.js | |
parent | a5718bd0e29a6245d2e82a272a616782187ee283 (diff) |
Attempt at adding orientation based input
Diffstat (limited to 'game/main.js')
-rw-r--r-- | game/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/game/main.js b/game/main.js index e2812da..a44c949 100644 --- a/game/main.js +++ b/game/main.js @@ -4,6 +4,9 @@ window.onload = function () { var game = new Phaser.Game(1100, 950, Phaser.AUTO, 'interactive-pacbot'); + var Orientation = require('./plugins/orientation'); + game.orientation = new Orientation(); + // Game States game.state.add('boot', require('./states/boot')); game.state.add('gameover', require('./states/gameover')); |