basic dialogue progression
This commit is contained in:
@@ -1,7 +1,31 @@
|
||||
[gd_scene format=3 uid="uid://dc3nef7mu87lf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cyhw5qm44uykq" path="res://backend/scripts/game.gd" id="1_r8aos"]
|
||||
[ext_resource type="Script" uid="uid://dw5jr50hsls5n" path="res://dialogue/scripts/dialogue.gd" id="2_6pot5"]
|
||||
[ext_resource type="Script" uid="uid://d2d5w1vmd71js" path="res://dialogue/scripts/choice.gd" id="3_iree2"]
|
||||
[ext_resource type="Script" uid="uid://cu54e7uh65lq0" path="res://dialogue/scripts/scene.gd" id="4_hiff8"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7gud4"]
|
||||
script = ExtResource("2_6pot5")
|
||||
dialogue = "this is a test scene for the dialogue system"
|
||||
metadata/_custom_type_script = "uid://dw5jr50hsls5n"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2c6wc"]
|
||||
script = ExtResource("2_6pot5")
|
||||
dialogue = "this is the next line the character is saying"
|
||||
metadata/_custom_type_script = "uid://dw5jr50hsls5n"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qfeqt"]
|
||||
script = ExtResource("2_6pot5")
|
||||
dialogue = "and this is the last line"
|
||||
metadata/_custom_type_script = "uid://dw5jr50hsls5n"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tbx8t"]
|
||||
script = ExtResource("4_hiff8")
|
||||
dialogue = Array[ExtResource("2_6pot5")]([SubResource("Resource_7gud4"), SubResource("Resource_2c6wc"), SubResource("Resource_qfeqt")])
|
||||
metadata/_custom_type_script = "uid://cu54e7uh65lq0"
|
||||
|
||||
[node name="Game" type="Node" unique_id=1724068054]
|
||||
script = ExtResource("1_r8aos")
|
||||
dialogue_scene = SubResource("Resource_tbx8t")
|
||||
metadata/_custom_type_script = "uid://cyhw5qm44uykq"
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
extends Node
|
||||
class_name Game
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
pass
|
||||
@export var dialogue_scene: DialogueScene
|
||||
|
||||
func _ready() -> void:
|
||||
add_child(await DialogueEncounter.new(self.dialogue_scene))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user