sproing
This commit is contained in:
parent
d77ed8a49f
commit
20f35ab240
5 changed files with 33 additions and 19 deletions
|
@ -49,6 +49,11 @@ func kill() -> void:
|
|||
state_chart.send_event(&"killed")
|
||||
|
||||
|
||||
func launch(impulse: Vector2) -> void:
|
||||
velocity = impulse
|
||||
state_chart.send_event(&"launched")
|
||||
|
||||
|
||||
#region Idle
|
||||
func _slow_to_stop(delta: float) -> void:
|
||||
velocity.x = move_toward(velocity.x, 0.0, stopping_force * delta)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue