End of Chapter 3. Loading scene and new game button working!
This commit is contained in:
15
scripts/title/title_screen.gd
Normal file
15
scripts/title/title_screen.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
extends Control
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_new_game_button_pressed() -> void:
|
||||
Loader.loadScene(self, "res://scenes/game.tscn")
|
||||
1
scripts/title/title_screen.gd.uid
Normal file
1
scripts/title/title_screen.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bklj1ua1qok02
|
||||
Reference in New Issue
Block a user