Added level display dev text and started a gitignore
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
*.swp
|
||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user