diff --git a/src/game.coffee b/src/game.coffee index 05069cb..1e242d1 100644 --- a/src/game.coffee +++ b/src/game.coffee @@ -4,6 +4,8 @@ app.game = @map[i] = new Tile(i) @map[20*5+10].entity = new Base + # TODO: BUG BUG: ... the base is some time replaced by a tile ... + @mouseX = 0 @mouseY = 0 @currentHoveredTile = new Tile(-1) diff --git a/src/hud.coffee b/src/hud.coffee index b6618cf..7b10a23 100644 --- a/src/hud.coffee +++ b/src/hud.coffee @@ -52,7 +52,7 @@ app.game.hud = # Energy production (47) - length = Math.round(((25*app.game.solarpanelCount())*4)/100) + length = Math.round(((25*app.game.solarpanelCount())*45)/100) for i in [0..length] app.layer.setPixel("#228ca5", 49+i, 91) app.layer.setPixel("#8ddaed", 50+i, 92)