This commit is contained in:
2025-09-09 12:59:39 +02:00
parent c0863ef102
commit d0d4189c44
3 changed files with 35 additions and 19 deletions

View File

@@ -20,7 +20,10 @@ func _ready() -> void:
score = ResourceLoader.load("user://Score.res")
else:
score = Score.new()
func _input(event: InputEvent) -> void:
if event.is_action_pressed("quit"):
get_tree().quit()
func start_one_player()->void:
get_tree().change_scene_to_file("res://scene/main_game.tscn")