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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user