Skip to content
Snippets Groups Projects

Förbättrade vägghopp

Merged Filip Berg requested to merge wall_jump_improvements into main
7 files
+ 39
120
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 0
4
@@ -15,13 +15,10 @@ const AIR_DASH_SPEED_DENY : float = 8.0
@onready var dash_timer : Timer = $DashTimer
var is_dashing : bool = false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
player.floor_max_speed_lerp_factor = 10.0
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta: float) -> void:
if player.is_on_floor():
player.accel = lerp(player.accel, player.BASE_ACCEL, delta*DASH_ACCEL_DENY)
@@ -46,7 +43,6 @@ func handle_dash(event : InputEvent) -> void:
player.max_speed = player.BASE_MAX_SPEED * DASH_SPEED_BOOST
dash_timer.start()
dash_timeout.start()
func _on_dash_timer_timeout() -> void:
Loading