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

@ -3,3 +3,8 @@ html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@font-face {
font-family: 'Minecraftia';
src: url('font/Minecraftia-Regular.ttf');
}

View file

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

View file

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