From 090e6cb379eab53b617a2c579103f4aec8e82954 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Thu, 15 Feb 2018 16:05:28 -0500 Subject: [PATCH] improved title placement --- js/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/view.js b/js/view.js index aeecc81..ae20e5c 100644 --- a/js/view.js +++ b/js/view.js @@ -41,8 +41,8 @@ function drawScoreboard() { var h = trueCanvas.height / 2 + gdy + 100 * settings.scale; if (gameState === 0) { renderText(trueCanvas.width / 2 + gdx + 6 * settings.scale, trueCanvas.height / 2 + gdy, 60, "rgb(236, 240, 241)", String.fromCharCode("0xf04b"), 'px FontAwesome'); - renderText(trueCanvas.width / 2 + gdx + 6 * settings.scale, trueCanvas.height / 2 + gdy - 155 * settings.scale, 150, "#2c3e50", "Hextris"); - renderText(trueCanvas.width / 2 + gdx + 5 * settings.scale, h, fontSize, "rgb(44,62,80)", 'Play!'); + renderText(trueCanvas.width / 2 + gdx + 6 * settings.scale, trueCanvas.height / 2.15 + gdy - 155 * settings.scale, 150, "#2c3e50", "Hextris"); + renderText(trueCanvas.width / 2 + gdx + 5 * settings.scale, h + 10, fontSize, "rgb(44,62,80)", 'Play!'); } else if (gameState != 0 && textOpacity > 0) { textOpacity -= 0.05; renderText(trueCanvas.width / 2 + gdx + 6 * settings.scale, trueCanvas.height / 2 + gdy, 60, "rgb(236, 240, 241)", String.fromCharCode("0xf04b"), 'px FontAwesome');