2024-12-18 16:35:26 -05:00
|
|
|
class_name MainMenu extends Node
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
preload("res://Scenes/Gameplay/Houses/house0.tscn")
|
|
|
|
preload("res://Scenes/Gameplay/Houses/house1.tscn")
|
|
|
|
preload("res://Scenes/Gameplay/Houses/house2.tscn")
|
|
|
|
preload("res://Scenes/Gameplay/block.tscn")
|
|
|
|
preload("res://Scenes/Gameplay/ring.tscn")
|
2024-12-18 22:48:05 -05:00
|
|
|
preload("res://Scenes/Gameplay/grinchRing.tscn")
|
|
|
|
preload("res://Scenes/Gameplay/deliveryMarker.tscn")
|
2024-12-20 01:39:49 -05:00
|
|
|
preload("res://Scenes/StuckSpot.tscn")
|
2024-12-18 16:35:26 -05:00
|
|
|
get_tree().root.add_child.call_deferred(load("res://Scenes/UI/FPSCounter.tscn").instantiate())
|
|
|
|
|
|
|
|
func _on_play_pressed():
|
|
|
|
get_tree().root.add_child(load("res://Scenes/Gameplay/City.tscn").instantiate())
|
|
|
|
queue_free()
|