diff --git a/public/font/Minecraftia-Regular.ttf b/public/font/Minecraftia-Regular.ttf new file mode 100755 index 0000000..7247ad7 Binary files /dev/null and b/public/font/Minecraftia-Regular.ttf differ diff --git a/public/styles.css b/public/styles.css index af75eca..20f6605 100644 --- a/public/styles.css +++ b/public/styles.css @@ -2,4 +2,9 @@ html, body { background-color: #eee; margin: 0; padding: 0; +} + +@font-face { + font-family: 'Minecraftia'; + src: url('font/Minecraftia-Regular.ttf'); } \ No newline at end of file diff --git a/src/hud.coffee b/src/hud.coffee index 08943b7..fb2abc6 100644 --- a/src/hud.coffee +++ b/src/hud.coffee @@ -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 diff --git a/src/main.coffee b/src/main.coffee index 04d975f..6ef3ea6 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -1,7 +1,7 @@ app = playground({ width: 8*20*5, height: 8*15*5, - scaleToFit: false, + scaleToFit: true, smoothing: false, create: ->