Start with the amount indicator

This commit is contained in:
Aaron Mueller 2014-12-06 17:42:23 +01:00
parent eecacde582
commit 8d5e7c10ff

View file

@ -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.