Added level display dev text and started a gitignore

This commit is contained in:
rain
2023-11-16 21:44:38 -06:00
parent 8013ba262a
commit 80216e5c30
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
*.swp
+2 -2
View File
@@ -21,12 +21,12 @@ export class UI {
ctx.drawImage(img, this.x - offset, this.y+this.padding, this.width, this.height); ctx.drawImage(img, this.x - offset, this.y+this.padding, this.width, this.height);
} }
// Frame Counter // Frame Counter
if(this.game.hitboxes) { if(this.game.hitboxes) {
ctx.fillStyle = 'black'; ctx.fillStyle = 'black';
ctx.font = "10px Arial"; ctx.font = "10px Arial";
ctx.fillText(this.game.frame, 0, 10); ctx.fillText("FPS: " + this.game.frame, 0, 10);
ctx.fillText("LVL: " + this.game.map.map.name, 0, 20);
} }
} }
update(game) { update(game) {