refactor: Update player sprite and frame dimensions
This commit is contained in:
parent
583544840b
commit
d2ab5094ab
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user