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:
@@ -13,4 +13,4 @@ signal DISPLAY_MESSAGE(message)
|
||||
signal DISPLAY_COMMAND_PROMPT
|
||||
signal DISPLAY_CLEAR
|
||||
|
||||
signal LOAD_MAP(currentMap, newMap, spawnpoint, facing)
|
||||
signal LOAD_MAP(currentMap, newMapPath, spawnpoint, facing)
|
||||
|
||||
@@ -11,7 +11,7 @@ func _init(dir):
|
||||
|
||||
func execute():
|
||||
CommandDispatcher.PLAYER_MOVE.emit(direction)
|
||||
emit_signal("COMMAND_PROCESSED", getCommandText())
|
||||
COMMAND_PROCESSED.emit(getCommandText())
|
||||
|
||||
|
||||
func getDirectionString() -> String:
|
||||
|
||||
Reference in New Issue
Block a user