level pt1
This commit is contained in:
parent
e14289807b
commit
ebdb9c7074
13 changed files with 5138 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ func exp_lerp(a: Variant, b: Variant, decay: float, dt: float) -> Variant:
|
|||
func _process_movement(delta: float) -> void:
|
||||
var input = Input.get_vector("move_left", "move_right", "move_up", "move_down")
|
||||
input.normalized()
|
||||
var desired_velocity = Vector3(input.x, 0., input.y) * MOVE_SPEED
|
||||
var mul := 5. if DebugMenu.high_speed_hack else 1.
|
||||
var desired_velocity = Vector3(input.x, 0., input.y) * MOVE_SPEED * mul
|
||||
velocity = exp_lerp(velocity, desired_velocity, 20, delta)
|
||||
move_and_slide()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue