Beginning of lesson 33. House polygon working and we are able to speak with NPC at world map, but not in starter town.
This commit is contained in:
@@ -7,6 +7,7 @@ signal PAUSE_PROCESSOR
|
||||
|
||||
# Game Signals
|
||||
signal PLAYER_MOVE(direction)
|
||||
signal PLAYER_SPEAK
|
||||
|
||||
# Message Console Signals
|
||||
signal DISPLAY_MESSAGE(message)
|
||||
@@ -16,4 +17,4 @@ signal DISPLAY_CLEAR
|
||||
signal LOAD_MAP(currentMap, newMapPath, spawnpoint, facing)
|
||||
signal LOAD_COMPLETE
|
||||
|
||||
signal TOGGLE_TILEMAP_LAYER(layerName)
|
||||
signal TOGGLE_TILEMAP_LAYER(layerName, visible)
|
||||
|
||||
@@ -7,5 +7,4 @@ func _init():
|
||||
|
||||
|
||||
func execute():
|
||||
print("Player passed.")
|
||||
COMMAND_PROCESSED.emit(commandLabel)
|
||||
|
||||
11
scripts/game/commands/SpeakCommand.gd
Normal file
11
scripts/game/commands/SpeakCommand.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Command
|
||||
|
||||
class_name SpeakCommand
|
||||
|
||||
func _init():
|
||||
commandLabel = "Speak"
|
||||
|
||||
|
||||
func execute():
|
||||
CommandDispatcher.PLAYER_SPEAK.emit()
|
||||
COMMAND_PROCESSED.emit(commandLabel)
|
||||
1
scripts/game/commands/SpeakCommand.gd.uid
Normal file
1
scripts/game/commands/SpeakCommand.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cnpwcq7khum55
|
||||
Reference in New Issue
Block a user