Added pixel pont
This commit is contained in:
parent
b89903bd04
commit
6d77c7bff0
4 changed files with 11 additions and 7 deletions
BIN
public/font/Minecraftia-Regular.ttf
Executable file
BIN
public/font/Minecraftia-Regular.ttf
Executable file
Binary file not shown.
|
@ -3,3 +3,8 @@ html, body {
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Minecraftia';
|
||||
src: url('font/Minecraftia-Regular.ttf');
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
app = playground({
|
||||
width: 8*20*5,
|
||||
height: 8*15*5,
|
||||
scaleToFit: false,
|
||||
scaleToFit: true,
|
||||
smoothing: false,
|
||||
|
||||
create: ->
|
||||
|
|
Loading…
Reference in a new issue