refactor: Update player sprite and adjust movement parameters
This commit is contained in:
parent
0a13dfc0a3
commit
c853738bbf
@ -9,11 +9,11 @@ class Player extends Entity {
|
|||||||
|
|
||||||
// Load player sprite
|
// Load player sprite
|
||||||
this.sprite = new Image();
|
this.sprite = new Image();
|
||||||
this.sprite.src = 'sprites/citizen.png';
|
this.sprite.src = 'sprites/purplin.png';
|
||||||
|
|
||||||
// Movement properties
|
// Movement properties
|
||||||
this.moveSpeed = 0.15;
|
this.moveSpeed = 0.03;
|
||||||
this.jumpForce = -0.1;
|
this.jumpForce = -0.2;
|
||||||
this.gravity = 0.02;
|
this.gravity = 0.02;
|
||||||
this.maxVelocity = 0.5;
|
this.maxVelocity = 0.5;
|
||||||
this.friction = 0.9;
|
this.friction = 0.9;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user