feat(#15): fix centering player issue

This commit is contained in:
Juan Sebastián Montoya 2024-09-20 11:40:18 -05:00
parent 9403de1042
commit e2cd0ee490

View file

@ -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] },