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;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Minecraftia';
|
||||||
|
src: url('font/Minecraftia-Regular.ttf');
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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: ->
|
||||||
|
|
Loading…
Reference in a new issue