Added mapping tool, reworked scene structure, and added test data.
This commit is contained in:
@@ -17,12 +17,12 @@ func Start():
|
||||
|
||||
func walk_scene(next_scene: DialogueScene):
|
||||
print("walking scene")
|
||||
for scene in next_scene.get_scene():
|
||||
print(scene.dialogue)
|
||||
if scene.choices.size() > 0:
|
||||
for choice in scene.choices:
|
||||
for dia : Dialogue in next_scene.get_scene():
|
||||
print(dia.dialogue_str)
|
||||
if dia.choices.size() > 0:
|
||||
for choice: Choice in dia.choices:
|
||||
print(choice.response)
|
||||
if Input.is_key_pressed(KEY_1):
|
||||
await walk_scene(scene.choices[0].scene)
|
||||
await walk_scene(dia.choices[0].get_target())
|
||||
step.emit()
|
||||
await step
|
||||
|
||||
Reference in New Issue
Block a user