fixed hexagon not being centered in the y axis during pauses
This commit is contained in:
parent
c90f633789
commit
8cab632d4a
2 changed files with 4 additions and 3 deletions
|
@ -127,9 +127,10 @@ function Clock(sideLength) {
|
|||
};
|
||||
|
||||
this.draw = function() {
|
||||
this.ct++;
|
||||
this.ct++;
|
||||
this.x = trueCanvas.width/2;
|
||||
if (gameState == 1) {
|
||||
|
||||
if (gameState != -2) {
|
||||
this.y = trueCanvas.height/2;
|
||||
}
|
||||
this.sideLength = settings.hexWidth;
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue