prout: pét illimité

Pour le moment et par manque de gameplay, je préfère choisir de ne pas
limiter le prout de quelque manière que ce soit. J'ai donc délibérément
supprimé du HUD la geauge de prout et aussi le fait que le prout se
recharge. Maintenant les fromages sont juste des fromages. Une sorte de
truc à ramasser mais qui sert à rien.

Le gameplay après le juyce.
This commit is contained in:
Thomas Lavocat
2023-10-15 15:56:00 +02:00
parent 750c2b11a5
commit 7fb656a28e
7 changed files with 18 additions and 227 deletions

View File

@@ -120,7 +120,6 @@ var dashing : bool = false
var dash_step : int = -1
var dash_direction_x : int = 1
var dash_direction_y : int = 1
var available_dashs = 1000
# Variables d'état relative au crouch
var crouch : bool = false
@@ -151,7 +150,6 @@ func copy_from(other : Princess):
dash_step = other.dash_step
dash_direction_x = other.dash_direction_x
dash_direction_y = other.dash_direction_y
available_dashs = other.available_dashs
near_cliff = other.near_cliff
################################################################################
@@ -517,7 +515,7 @@ func read_input() -> void:
if Input.is_action_just_pressed("dash" + action_suffix):
if not dashing and available_dashs > 0:
if not dashing:
var axis_x = Input.get_axis(
"move_left" + action_suffix,
"move_right" + action_suffix
@@ -544,7 +542,6 @@ func read_input() -> void:
# Ne dasher que si une direction est donnée avec le joystick
if dash_direction_x or dash_direction_y:
Input.start_joy_vibration(0, 1, 0.5, 0.2)
available_dashs -=1
dashing = true
nuage_prout.restart()
nuage_prout.emitting = true
@@ -634,9 +631,9 @@ func _physics_process(_delta: float) -> void:
func you_got_cheese(speed:float=1) -> void:
cheese_collected.emit(speed)
reload_fart()
func reload_fart() -> void:
available_dashs = min(available_dashs+1, MAX_FARTS)
Input.start_joy_vibration(0, 0, 1, 0.2)
func you_got_lactase() -> void:
@@ -644,7 +641,6 @@ func you_got_lactase() -> void:
kill_farts()
func kill_farts() -> void:
#available_dashs = 0
cancel_dash()
Input.start_joy_vibration(0, 0.5, 0, 0.1)