From 8d5e7c10ff1ec7899d8b032531143ea661cf0207 Mon Sep 17 00:00:00 2001 From: Aaron Mueller Date: Sat, 6 Dec 2014 17:42:23 +0100 Subject: [PATCH] Start with the amount indicator --- src/entities/tile.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/entities/tile.coffee b/src/entities/tile.coffee index 7a0857e..8692fbd 100644 --- a/src/entities/tile.coffee +++ b/src/entities/tile.coffee @@ -22,8 +22,7 @@ class Tile extends BaseEntity name = app.layerIndexToName(@currentLayer) app.game.resources[name] += 1 else - @currentLayer += 1 - + @currentLayer += 1 moveIn: -> @isActive = true @@ -42,7 +41,11 @@ class Tile extends BaseEntity # app.layer.drawImage app.images.selected, x*8, y*8 if @isActive app.layer.drawImage app.images.active, x*8, y*8 + # Draw the status indicator. + for i in [0..5] + color = "#0a0" + color = "#0f0" if i == 5 + app.layer.setPixel(color, x*8+1+i, y*8+6) - # Draw the status indicator.