ld31-space-diggers/src/hud.coffee
2014-12-06 16:33:24 +01:00

11 lines
262 B
CoffeeScript

app.game.hud =
render: ->
posy = 49
for type, amount of app.game.resources
if amount > 0
app.layer
.fillStyle "#000"
.font "20px Minecraftia"
.wrappedText(amount+" x "+type, 11, posy, 800)
posy += 29