A game created for the Godot Wild Jam #21
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
438B

  1. extends Node2D
  2. signal exit_level
  3. func _input(event):
  4. if event.is_action_pressed("ButtonA"):
  5. emit_signal("exit_level", null, null, "Level_001.tscn")
  6. if event.is_action_pressed("ui_cancel"):
  7. get_tree().quit()
  8. func is_main_menu():
  9. return true
  10. func get_starting_position():
  11. return get_node("Player_Start").position
  12. func get_level_music():
  13. return ""
  14. func _on_AnimPlayer_animation_finished(anim_name):
  15. set_process_input(true)