princesse/réglage: amélioration du feeling

marche moins rapide
saut un poil plus haut
gravité moins présente

Le tout donne une meilleure maitrise du personnage.
This commit is contained in:
Thomas Lavocat
2023-04-30 12:12:18 +02:00
parent 98352abca8
commit 89447a6541
2 changed files with 7 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ var gravity: int = ProjectSettings.get("physics/2d/default_gravity")
@export var JUMPING_COUNTER_REFILL = 2
# Tous les combien d'incréments rajouter un refill sur le compteur
@export var JUMPING_KEY_COUNTER_THRESHOLD = 3
@export var KICK_JUMP_LIMITER = 0.75
# Nombre de frames coyote durant lesquelle le joueur peut encore sauter
# sans encore être au sol
@@ -231,7 +232,7 @@ func kick() -> void:
if kick_step > 0:
kick_step -= 1
velocity.y = KICK_SPEED_TABLE[kick_step] * JUMPING_SPEED * -1 * 0.8
velocity.y = KICK_SPEED_TABLE[kick_step] * JUMPING_SPEED * -1 * KICK_JUMP_LIMITER
velocity.x = KICK_SPEED_TABLE[kick_step] * WALKING_SPEED * kick_direction
else:
kick_step = -1