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
|