refactor: Update player sprite and frame dimensions

This commit is contained in:
Kacper Kostka 2025-04-05 18:49:29 +02:00 committed by Kacper Kostka (aider)
parent 583544840b
commit d2ab5094ab

View File

@ -9,7 +9,7 @@ class Player extends Entity {
// Load player sprite
this.sprite = new Image();
this.sprite.src = 'sprites/citizen.png';
this.sprite.src = 'sprites/rabbit.png';
// Movement properties
this.moveSpeed = 0.03;
@ -26,7 +26,7 @@ class Player extends Entity {
// Animation properties
this.frameWidth = 32;
this.frameHeight = 32;
this.frameHeight = 30;
this.frameCount = 4;
this.currentFrame = 0;
this.animationSpeed = 150; // ms per frame