refactor: Update player sprite and adjust movement parameters

This commit is contained in:
Kacper Kostka 2025-04-05 18:22:36 +02:00 committed by Kacper Kostka (aider)
parent 0a13dfc0a3
commit c853738bbf

View File

@ -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;