From 818971ccdb888d5a4382f90064e3eb68b487df41 Mon Sep 17 00:00:00 2001 From: Evert Date: Tue, 22 Aug 2017 12:00:24 +0300 Subject: [PATCH] add default font to btns --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index f862a8f..ba8b5f2 100644 --- a/index.js +++ b/index.js @@ -178,6 +178,7 @@ window.onload = function () { this.color = color this.disabled = false this.hovered = false + this.font = '20px Helvetica' } draw () { @@ -324,6 +325,7 @@ window.onload = function () { if (Game.state !== -1 && Game.health <= 0) { Game.health = 0 Game.state = -1 + Game.towerSel = null } if (Game.state === 2 && gst === 1) {