Files
idlebreakout/scenes/mainmenu.gd
T

15 lines
378 B
GDScript
Raw Normal View History

2024-07-23 16:49:30 +02:00
extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
randomize()
2024-07-23 16:49:30 +02:00
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_start_game_btn_pressed():
2024-07-23 17:47:14 +02:00
get_tree().get_root().add_child(preload("res://scenes/level.tscn").instantiate())
hide()