diff options
-rw-r--r-- | css/styles.css | 14 | ||||
-rw-r--r-- | game/prefabs/player.js | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/css/styles.css b/css/styles.css index c0bb0b2..41e49b0 100644 --- a/css/styles.css +++ b/css/styles.css @@ -3,15 +3,21 @@ body { } html, body, #interactive-pacbot, #interactive-pacbot>canvas { - max-height: 100%; - max-width: 100%; - height: auto; - width: auto; margin: 0px; padding: 0px; } +html, body, #interactive-pacbot { + height: 100%; + width: 100%; +} + #interactive-pacbot>canvas { margin-left: auto; margin-right: auto; + + max-height: 100%; + max-width: 100%; + height: auto; + width: auto; } diff --git a/game/prefabs/player.js b/game/prefabs/player.js index df991b2..344793b 100644 --- a/game/prefabs/player.js +++ b/game/prefabs/player.js @@ -33,7 +33,7 @@ var Player = function(game, x, y, key, frame, soundKey) { var scoreFraction = player.score / player.maxScore; source.playbackRate.value = 0.75 + scoreFraction*6; return source; - } + }; }; Player.prototype = Object.create(Phaser.Sprite.prototype); |