add default font to btns
This commit is contained in:
parent
9d1aac4a73
commit
818971ccdb
2
index.js
2
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user