End of chapter 6. A lot of problems took to much time to solve. It was good to know better Godot internal mechanism.

This commit is contained in:
2025-04-06 18:07:29 -03:00
parent 909c385dee
commit db55b2af02
21 changed files with 202 additions and 70 deletions

View File

@@ -1,12 +1,13 @@
extends Node
class_name GameScreen
class_name GameScreen
@export var map: Node
@export var map:Node
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
func _ready():
map.add_child(load(GameManager.currentMapPath).instantiate())
CommandDispatcher.WAIT_FOR_COMMAND.emit()
func _on_pass_button_pressed() -> void:
func _on_pass_button_pressed():
CommandDispatcher.PROCESS_COMMAND.emit(PassCommand.new())