diff --git a/modules/game-objects/fps-counter.js b/modules/game-objects/fps-counter.js index 3d4b266..e56bdbb 100644 --- a/modules/game-objects/fps-counter.js +++ b/modules/game-objects/fps-counter.js @@ -1,8 +1,8 @@ import { GameObject } from "./game-object.js"; export class FpsCounter extends GameObject { - constructor({ debug = false }) { - super({ debug }); + constructor() { + super(); this.fps = 0; } @@ -15,7 +15,7 @@ export class FpsCounter extends GameObject { return; } ctx.fillStyle = "Red"; - ctx.font = "normal 12pt Arial"; + ctx.font = "normal 12pt Pixelify Sans"; ctx.fillText(this.fps + " fps", 5, 15); } }