diff --git a/modules/game-objects/player.js b/modules/game-objects/player.js index 31d9a21..1d2c2d4 100644 --- a/modules/game-objects/player.js +++ b/modules/game-objects/player.js @@ -92,8 +92,10 @@ export class Player extends GameObject { x = 0, y = 0, speed = 1, + width = TILE_SIZE, + height = TILE_SIZE, }) { - super({ x, y, gameObjects }); + super({ x, y, gameObjects, width, height }); this.speed = speed; this.keys = [ { key: "ArrowUp", pressed: false, value: [0, -1] },