diff --git a/scripts/spaceship.gd b/scripts/spaceship.gd index 8930854..03e1d9d 100644 --- a/scripts/spaceship.gd +++ b/scripts/spaceship.gd @@ -7,7 +7,7 @@ extends CharacterBody2D func _physics_process(delta: float) -> void: var direction = Input.get_vector("move_left", "move_right", "move_up", "move_down") - # + velocity += direction * thrust * delta velocity *= friction