From a3543762d9fa1deaff6f155d3a4d089784b432a5 Mon Sep 17 00:00:00 2001 From: Aaron Mueller Date: Sun, 7 Dec 2014 18:39:37 +0100 Subject: [PATCH] fix --- src/game.coffee | 2 ++ src/hud.coffee | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)