summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2014-08-02 21:11:24 +0200
committerJustin Worthe <justin.worthe@gmail.com>2014-08-02 21:11:24 +0200
commita26171ddfa7a658b554f821bef30ac4080fa46dd (patch)
tree4e46bb6b6c763f69acfbac6ba56a3fa73912c0d8
parent32dd2c2e711223722e3f5a45b362d5cadd802b47 (diff)
Updated width fix. Last one didn't work on firefox.
-rw-r--r--css/styles.css14
-rw-r--r--game/prefabs/player.js2
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);