fixed hexagon not being centered in the y axis during pauses

This commit is contained in:
lengstrom 2014-06-22 12:32:23 -04:00
parent c90f633789
commit 8cab632d4a
2 changed files with 4 additions and 3 deletions

View file

@ -129,7 +129,8 @@ function Clock(sideLength) {
this.draw = function() {
this.ct++;
this.x = trueCanvas.width/2;
if (gameState == 1) {
if (gameState != -2) {
this.y = trueCanvas.height/2;
}
this.sideLength = settings.hexWidth;

View file

@ -9,8 +9,8 @@ function renderText(x, y, fontSize, color, text) {
ctx.textAlign = 'center';
ctx.fillStyle = color;
ctx.fillText(text, x, y + (fontSize / 2) - 9 * settings.scale);
}
scoreOpacity = 0;
function drawScoreboard() {
if(scoreOpacity < 1){