Added pixel pont

This commit is contained in:
Ruben Müller 2014-12-06 16:33:24 +01:00
parent b89903bd04
commit 6d77c7bff0
4 changed files with 11 additions and 7 deletions

Binary file not shown.

View File

@ -2,4 +2,9 @@ html, body {
background-color: #eee;
margin: 0;
padding: 0;
}
@font-face {
font-family: 'Minecraftia';
src: url('font/Minecraftia-Regular.ttf');
}

View File

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

View File

@ -1,7 +1,7 @@
app = playground({
width: 8*20*5,
height: 8*15*5,
scaleToFit: false,
scaleToFit: true,
smoothing: false,
create: ->