ld31-space-diggers/src/hud.coffee
Aaron Mueller ecfa9d7268 hud work
2014-12-06 19:02:34 +01:00

12 lines
312 B
CoffeeScript

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