Fixed button colors

This commit is contained in:
2025-10-23 15:05:11 +03:00
parent 6f61be29f1
commit e98c5c751c
15 changed files with 64 additions and 22 deletions
+7 -2
View File
@@ -1,5 +1,10 @@
extends Node
const TitleScreen = preload("res://title_screen.tscn")
const Game = preload("res://game/game.tscn")
var _current_scene: Node
@@ -11,7 +16,7 @@ func _show_main_menu() -> void:
if _current_scene != null:
_current_scene.queue_free()
var scene : Node = load("res://title_screen.tscn").instantiate()
var scene := TitleScreen.instantiate()
add_child(scene)
scene.continue_game.connect(_continue_game)
scene.new_game.connect(_new_game)
@@ -27,7 +32,7 @@ func _new_game() -> void:
if _current_scene != null:
_current_scene.queue_free()
var scene : Node = load("res://game/game.tscn").instantiate()
var scene := Game.instantiate()
add_child(scene)
scene.show_main_menu.connect(_show_main_menu)
_current_scene = scene