From a26171ddfa7a658b554f821bef30ac4080fa46dd Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 2 Aug 2014 21:11:24 +0200 Subject: Updated width fix. Last one didn't work on firefox. --- css/styles.css | 14 ++++++++++---- 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); -- cgit v1.2.3