feat(#15): use new font in fps counter
This commit is contained in:
parent
ad3226de52
commit
36bebe5237
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
import { GameObject } from "./game-object.js";
|
import { GameObject } from "./game-object.js";
|
||||||
|
|
||||||
export class FpsCounter extends GameObject {
|
export class FpsCounter extends GameObject {
|
||||||
constructor({ debug = false }) {
|
constructor() {
|
||||||
super({ debug });
|
super();
|
||||||
this.fps = 0;
|
this.fps = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ export class FpsCounter extends GameObject {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ctx.fillStyle = "Red";
|
ctx.fillStyle = "Red";
|
||||||
ctx.font = "normal 12pt Arial";
|
ctx.font = "normal 12pt Pixelify Sans";
|
||||||
ctx.fillText(this.fps + " fps", 5, 15);
|
ctx.fillText(this.fps + " fps", 5, 15);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue