HUD update
This commit is contained in:
parent
8e3d344255
commit
78c245d3e1
1 changed files with 40 additions and 35 deletions
|
@ -43,11 +43,16 @@ app.game.hud =
|
|||
app.layer.setPixel(resourcePanelColor, x, y)
|
||||
|
||||
switch panelusage
|
||||
when 'tile'
|
||||
@showResources()
|
||||
when 'entity'
|
||||
#app.layer.drawRegion app.images.entities, currentSelectedTile.entity.sprite(), 44, 102
|
||||
if currentSelectedTile.entity.isMoveable()
|
||||
app.layer.drawRegion @itemArrow.image, @itemArrow.sprite(), 44, 102
|
||||
when 'resources'
|
||||
@showResources()
|
||||
|
||||
showResources: ->
|
||||
# resources
|
||||
i = 0
|
||||
for type, amount of app.game.resources
|
||||
|
|
Loading…
Reference in a new issue