Fixed names for a better traceability of code errors with orignal code lesson. End of lesson 25. Player is moving on the map viewport!
This commit is contained in:
@@ -5,8 +5,4 @@ class_name GameScreen
|
||||
@export var map:Node
|
||||
|
||||
func _ready():
|
||||
CommandDispatcher.LOAD_MAP.emit(null, GameManager.defaultMapPath, null, Map.Direction.North)
|
||||
|
||||
|
||||
func _on_pass_button_pressed():
|
||||
CommandDispatcher.PROCESS_COMMAND.emit(PassCommand.new())
|
||||
CommandDispatcher.LOAD_MAP.emit(GameManager.startMap, null, Map.Direction.North)
|
||||
|
||||
Reference in New Issue
Block a user