title
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user