ld31-space-diggers/src/hud.coffee

12 lines
264 B
CoffeeScript
Raw Normal View History

2014-12-06 12:55:43 +01:00
app.game.hud =
2014-12-06 13:14:15 +01:00
render: ->
2014-12-06 14:14:32 +01:00
posy = 20
for type, amount of app.game.resources
if amount > 0
app.layer
.fillStyle "#fff"
.font "15px Arial"
.wrappedText(amount + "x " + type, 10, posy, 200)
posy += 15
2014-12-06 12:55:43 +01:00