add default font to btns

This commit is contained in:
Evert Prants 2017-08-22 12:00:24 +03:00
parent 9d1aac4a73
commit 818971ccdb
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -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) {