]> Untitled Git - mushroom-game.git/blob - world.gd
07e281ddcb72e8d47bcd463e90d5dfb1fa673e93
[mushroom-game.git] / world.gd
1 extends Node3D
2
3 func quit_game() -> void:
4         get_tree().quit()
5         
6 # Quit the game
7 func _unhandled_input(event: InputEvent) -> void:
8         if event.is_action_pressed("quit-game"):
9                 quit_game()
10
11
12 # Called when the node enters the scene tree for the first time.
13 func _ready() -> void:
14         pass # Replace with function body.
15
16
17 # Called every frame. 'delta' is the elapsed time since the previous frame.
18 func _process(_delta: float) -> void:
19         pass
20
21
22 func _on_mushroom_picked() -> void:
23         print("Player picked all mushrooms!")
24         #quit_game()