Sagi Dayan
1c640fcd39
- Controls section still not implemented. Dont thing we need it at all - Need to add last best score + player name Maybe...
20 lines
472 B
GDScript
20 lines
472 B
GDScript
extends Node2D
|
|
|
|
func _ready() -> void:
|
|
$CanvasLayer/Control/VBoxContainer/NewGameBtn.grab_focus()
|
|
|
|
|
|
func _on_ExitGameBtn_pressed() -> void:
|
|
get_tree().quit(0)
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_ControlsBtn_pressed() -> void:
|
|
print("Not working yet")
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_NewGameBtn_pressed() -> void:
|
|
var next_scene = load("res://src/Levels/LevelTemplate/LevelTemplate.tscn")
|
|
get_tree().change_scene_to(next_scene)
|
|
queue_free()
|