7 # Called when the node enters the scene tree for the first time.
9 pass # Replace with function body.
12 # Called every frame. 'delta' is the elapsed time since the previous frame.
13 func _process(_delta: float) -> void:
17 # Quit the game on user action
18 func _unhandled_input(event: InputEvent) -> void:
19 if event.is_action_pressed("quit-game"):
23 # if all mushrooms have been picked,
25 func _on_mushroom_picked() -> void:
26 print("Player picked a mushroom!")
28 for mushroom in $mushrooms.get_children():
29 if mushroom.is_picked == false:
32 print("Player picked all mushrooms, game over")
36 func _on_victory() -> void:
37 get_tree().change_scene_to_file("res://victory-screen.tscn")
40 func _on_quit() -> void: