ld31-space-diggers/src/hud.coffee

11 lines
262 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 16:33:24 +01:00
posy = 49
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 16:49:29 +01:00
.font "22px Minecraftia"
2014-12-06 16:33:24 +01:00
.wrappedText(amount+" x "+type, 11, posy, 800)
posy += 29