12 lines
305 B
CoffeeScript
12 lines
305 B
CoffeeScript
app.game.hud =
|
|
render: ->
|
|
app.layer.drawImage app.images.hud, 0, 12*8+2
|
|
posy = 15
|
|
for type, amount of app.game.resources
|
|
if amount > 0
|
|
app.layer
|
|
.fillStyle "#000"
|
|
.font "10px Arial"
|
|
.wrappedText(amount+" x "+type, 5, posy, 800)
|
|
posy += 10
|