ld31-space-diggers/src/hud.coffee

12 lines
305 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 19:01:21 +01:00
app.layer.drawImage app.images.hud, 0, 12*8+2
2014-12-06 20:05:02 +01:00
posy = 15
2014-12-06 14:14:32 +01:00
for type, amount of app.game.resources
if amount > 0
app.layer
2014-12-06 16:33:24 +01:00
.fillStyle "#000"
2014-12-06 20:05:02 +01:00
.font "10px Arial"
.wrappedText(amount+" x "+type, 5, posy, 800)
posy += 10