bwoooosh
This commit is contained in:
parent
a44bb1c14a
commit
021bf19153
2 changed files with 27 additions and 11 deletions
|
@ -33,6 +33,8 @@ func _physics_process(delta: float) -> void:
|
|||
state_chart.set_expression_property(&"on_floor", is_on_floor())
|
||||
|
||||
input_dir = Input.get_vector(&"move_left", &"move_right", &"move_up", &"move_down")
|
||||
|
||||
state_chart.send_event(&"tick")
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
|
@ -74,4 +76,9 @@ func _start_jump() -> void:
|
|||
|
||||
|
||||
#region Missile
|
||||
func _face_towards_velocity(_delta: float) -> void:
|
||||
graphics.rotation = Vector2(graphics.scale.x, 0.0).angle_to(velocity)
|
||||
|
||||
func _restore_graphics_rotation() -> void:
|
||||
graphics.rotation = 0.0
|
||||
#endregion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue