Add spine and dialogic museums
This commit is contained in:
42
docs/museums/dialogic/Advisor.dch
Normal file
42
docs/museums/dialogic/Advisor.dch
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"@path": "res://addons/dialogic/Resources/character.gd",
|
||||
"@subpath": NodePath(""),
|
||||
&"_translation_id": "",
|
||||
&"color": Color(0.8, 0.6, 0.3, 1),
|
||||
&"custom_info": {
|
||||
"prefix": "",
|
||||
"sound_mood_default": "",
|
||||
"sound_moods": {},
|
||||
"style": "",
|
||||
"suffix": ""
|
||||
},
|
||||
&"default_portrait": "pl5",
|
||||
&"description": "A wise and cautious advisor.",
|
||||
&"display_name": "Advisor",
|
||||
&"mirror": false,
|
||||
&"nicknames": [""],
|
||||
&"offset": Vector2(0, 0),
|
||||
&"portraits": {
|
||||
"blink": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Antonio/pl5 blink.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"doubt": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Antonio/pl5 doubt.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"pl5": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Antonio/pl5.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"surprise": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Antonio/pl5 surprise.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
}
|
||||
},
|
||||
&"scale": 1.0
|
||||
}
|
||||
1
docs/museums/dialogic/Advisor.dch.uid
Normal file
1
docs/museums/dialogic/Advisor.dch.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://djkdsb6n611vd
|
||||
42
docs/museums/dialogic/Merchant.dch
Normal file
42
docs/museums/dialogic/Merchant.dch
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"@path": "res://addons/dialogic/Resources/character.gd",
|
||||
"@subpath": NodePath(""),
|
||||
&"_translation_id": "",
|
||||
&"color": Color(0.3, 0.8, 0.3, 1),
|
||||
&"custom_info": {
|
||||
"prefix": "",
|
||||
"sound_mood_default": "",
|
||||
"sound_moods": {},
|
||||
"style": "",
|
||||
"suffix": ""
|
||||
},
|
||||
&"default_portrait": "happy",
|
||||
&"description": "A wandering merchant with mysterious goods.",
|
||||
&"display_name": "Merchant",
|
||||
&"mirror": false,
|
||||
&"nicknames": [""],
|
||||
&"offset": Vector2(0, 0),
|
||||
&"portraits": {
|
||||
"blink": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Jane/pl3 blink.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"confusion": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Jane/pl3 confusion.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"happy": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Jane/pl3 happy.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"surprise": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Jane/pl3 surprise.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
}
|
||||
},
|
||||
&"scale": 1.0
|
||||
}
|
||||
1
docs/museums/dialogic/Merchant.dch.uid
Normal file
1
docs/museums/dialogic/Merchant.dch.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://ctp6h133vbn81
|
||||
47
docs/museums/dialogic/Miko.dch
Normal file
47
docs/museums/dialogic/Miko.dch
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"@path": "res://addons/dialogic/Resources/character.gd",
|
||||
"@subpath": NodePath(""),
|
||||
&"_translation_id": "",
|
||||
&"color": Color(0.4, 0.6, 1, 1),
|
||||
&"custom_info": {
|
||||
"prefix": "",
|
||||
"sound_mood_default": "",
|
||||
"sound_moods": {},
|
||||
"style": "",
|
||||
"suffix": ""
|
||||
},
|
||||
&"default_portrait": "neutral",
|
||||
&"description": "The main protagonist. Brave and curious.",
|
||||
&"display_name": "Miko",
|
||||
&"mirror": false,
|
||||
&"nicknames": [""],
|
||||
&"offset": Vector2(0, 0),
|
||||
&"portraits": {
|
||||
"anger": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Princess/anger.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"joy": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Princess/joy.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"neutral": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Princess/neutral.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"shock": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Princess/shock.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
},
|
||||
"smile": {
|
||||
"image": "res://addons/dialogic/Example Assets/portraits/Princess/smile.png",
|
||||
"offset": Vector2(0, 0),
|
||||
"scene": "res://addons/dialogic/Modules/Character/default_portrait.tscn"
|
||||
}
|
||||
},
|
||||
&"scale": 1.0
|
||||
}
|
||||
1
docs/museums/dialogic/Miko.dch.uid
Normal file
1
docs/museums/dialogic/Miko.dch.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bobyxwyl3l81t
|
||||
53
docs/museums/dialogic/Raptor.dch
Normal file
53
docs/museums/dialogic/Raptor.dch
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"@path": "res://addons/dialogic/Resources/character.gd",
|
||||
"@subpath": NodePath(""),
|
||||
&"_translation_id": "",
|
||||
&"color": Color(0.4296875, 0, 1, 1),
|
||||
&"custom_info": {
|
||||
"prefix": "",
|
||||
"sound_mood_default": "",
|
||||
"sound_moods": {},
|
||||
"style": "",
|
||||
"suffix": ""
|
||||
},
|
||||
&"default_portrait": "walk",
|
||||
&"description": "",
|
||||
&"display_name": "Raptor",
|
||||
&"mirror": false,
|
||||
&"nicknames": ["Raptor"],
|
||||
&"offset": Vector2(0, 0),
|
||||
&"portraits": {
|
||||
"jump": {
|
||||
"export_overrides": {
|
||||
"image": "",
|
||||
"spine_skeleton_data_file": "\"res://docs/museums/spine/assets/raptor/raptor-data.tres\""
|
||||
},
|
||||
"ignore_char_scale": false,
|
||||
"mirror": false,
|
||||
"offset": Vector2(0, 0),
|
||||
"scale": 1,
|
||||
"scene": "res://core/spine_dialogic_portrait.tscn"
|
||||
},
|
||||
"roar": {
|
||||
"export_overrides": {
|
||||
"image": "",
|
||||
"spine_skeleton_data_file": "\"res://docs/museums/spine/assets/raptor/raptor-data.tres\""
|
||||
},
|
||||
"mirror": false,
|
||||
"offset": Vector2(0, 0),
|
||||
"scale": 1,
|
||||
"scene": "res://core/spine_dialogic_portrait.tscn"
|
||||
},
|
||||
"walk": {
|
||||
"export_overrides": {
|
||||
"image": "",
|
||||
"spine_skeleton_data_file": "\"res://docs/museums/spine/assets/raptor/raptor-data.tres\""
|
||||
},
|
||||
"mirror": false,
|
||||
"offset": Vector2(0, 0),
|
||||
"scale": 1,
|
||||
"scene": "res://core/spine_dialogic_portrait.tscn"
|
||||
}
|
||||
},
|
||||
&"scale": 1.0
|
||||
}
|
||||
1
docs/museums/dialogic/Raptor.dch.uid
Normal file
1
docs/museums/dialogic/Raptor.dch.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bw6qijlpfi3ms
|
||||
35
docs/museums/dialogic/raptor_showcase.dtl
Normal file
35
docs/museums/dialogic/raptor_showcase.dtl
Normal file
@@ -0,0 +1,35 @@
|
||||
# ============================================================
|
||||
# Raptor Portrait Showcase
|
||||
# Demonstrates the three spine-animated portraits:
|
||||
# walk, jump, roar
|
||||
# ============================================================
|
||||
|
||||
join Raptor (walk) center
|
||||
|
||||
Raptor (walk): Watch me walk around. I'm fully animated!
|
||||
|
||||
[wait time="2.0"]
|
||||
|
||||
update Raptor (jump) center
|
||||
|
||||
Raptor (jump): Wheee! I can jump too!
|
||||
|
||||
[wait time="1.5"]
|
||||
|
||||
update Raptor (walk) center
|
||||
|
||||
Raptor (walk): Back to walking...
|
||||
|
||||
[wait time="1.5"]
|
||||
|
||||
update Raptor (roar) center
|
||||
|
||||
Raptor (roar): Roooaaar! Hear me roar!
|
||||
|
||||
[wait time="2.0"]
|
||||
|
||||
update Raptor (walk) center
|
||||
|
||||
Raptor (walk): That's all three portraits. Pretty cool, right?
|
||||
|
||||
[end_timeline]
|
||||
1
docs/museums/dialogic/raptor_showcase.dtl.uid
Normal file
1
docs/museums/dialogic/raptor_showcase.dtl.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dvn3s8fqqthox
|
||||
12
docs/museums/dialogic/raptor_showcase.gd
Normal file
12
docs/museums/dialogic/raptor_showcase.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends Node2D
|
||||
|
||||
@export var start_timeline: DialogicTimeline
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
Dialogic.start(start_timeline)
|
||||
pass
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
1
docs/museums/dialogic/raptor_showcase.gd.uid
Normal file
1
docs/museums/dialogic/raptor_showcase.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dihfboq6b0d0g
|
||||
8
docs/museums/dialogic/raptor_showcase.tscn
Normal file
8
docs/museums/dialogic/raptor_showcase.tscn
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_scene format=3 uid="uid://dlf2wgrgn120w"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dihfboq6b0d0g" path="res://docs/museums/dialogic/raptor_showcase.gd" id="1_soelo"]
|
||||
[ext_resource type="Resource" uid="uid://dvn3s8fqqthox" path="res://docs/museums/dialogic/raptor_showcase.dtl" id="2_5alpn"]
|
||||
|
||||
[node name="Start" type="Node2D" unique_id=165770346]
|
||||
script = ExtResource("1_soelo")
|
||||
start_timeline = ExtResource("2_5alpn")
|
||||
124
docs/museums/dialogic/start_timeline.dtl
Normal file
124
docs/museums/dialogic/start_timeline.dtl
Normal file
@@ -0,0 +1,124 @@
|
||||
# ============================================================
|
||||
# Dialogic 2 Test Timeline — Feature Showcase
|
||||
# ============================================================
|
||||
# Characters available:
|
||||
# Miko — portraits: neutral, smile, joy, anger, shock
|
||||
# Advisor — portraits: pl5, blink, doubt, surprise
|
||||
# Merchant — portraits: happy, blink, surprise, confusion
|
||||
# ============================================================
|
||||
|
||||
# ---- SETUP: Variables --------------------------------------
|
||||
set {coins} = 0
|
||||
set {player_has_key} = false
|
||||
set {met_merchant} = false
|
||||
|
||||
# ---- LABEL: opening ----------------------------------------
|
||||
label opening
|
||||
|
||||
# Join both main characters at the start
|
||||
join Miko center
|
||||
join Advisor right
|
||||
|
||||
Miko (joy): Welcome to the Dialogic 2 Test Timeline!
|
||||
Advisor (pl5): This timeline showcases all major Dialogic features.
|
||||
|
||||
# ---- TEXT: BBCode & text effects --------------------------
|
||||
Miko (joy): Hi there! I'm Miko, and this is a [b]bold[/b] text test.
|
||||
Miko (joy): [speed=0.02]I can speak slowly too...
|
||||
Miko (joy): And now I'm back to normal speed.
|
||||
|
||||
Advisor (pl5): Remember, [color=red]colored text[/color] works as well.
|
||||
Advisor (pl5): [pause=1.0] ...and so do timed pauses.
|
||||
|
||||
# ---- CONDITION: Variable-based branching ------------------
|
||||
if {coins} == 0:
|
||||
Miko (doubt): I don't have any coins yet. Let's find some!
|
||||
Advisor (doubt): We should look around carefully.
|
||||
else:
|
||||
Miko (joy): Nice, I already have some coins!
|
||||
Advisor (pl5): Good. That will come in handy.
|
||||
|
||||
# ---- VARIABLE: Set a variable -----------------------------
|
||||
set {coins} = 10
|
||||
|
||||
Miko (joy): [shake]Look![/shake] I just found 10 coins.
|
||||
|
||||
# ---- LABEL: merchant_encounter ----------------------------
|
||||
label merchant_encounter
|
||||
|
||||
join Merchant left
|
||||
|
||||
Miko (neutral): A merchant appeared. Let's see what he has.
|
||||
Advisor (doubt): Be cautious, Miko. Don't reveal everything you carry.
|
||||
|
||||
Merchant (happy): Welcome, traveler! Would you like to see my wares?
|
||||
|
||||
# ---- CHOICE: Branching dialog -----------------------------
|
||||
- Yes, show me what you've got!
|
||||
set {met_merchant} = true
|
||||
Miko (joy): Absolutely, show me your best items!
|
||||
Merchant (happy): Excellent choice! I have potions, scrolls, and enchanted blades.
|
||||
Merchant (blink): That will be {10/15/20} gold coins, please!
|
||||
set {coins} = -10
|
||||
Miko (shock): Here you go! That was expensive...
|
||||
Advisor (blink): Did you really have to spend all our coins?
|
||||
|
||||
- Not right now, maybe later.
|
||||
Miko (neutral): I'll come back when I have more gold.
|
||||
Merchant (happy): Suit yourself. The door is always open.
|
||||
Advisor (pl5): A wise decision.
|
||||
|
||||
- Use the ancient key to barter. | [if {player_has_key}]
|
||||
Miko (smile): I have this ancient key. Will you trade for it?
|
||||
Merchant (surprise): [shake]A key from the old kingdom?![/shake] Take anything you want!
|
||||
set {player_has_key} = false
|
||||
Miko (joy): That was a great deal!
|
||||
Advisor (surprise): You traded the key?! That was reckless...
|
||||
|
||||
# ---- SIGNAL: Emit a custom signal -------------------------
|
||||
[signal arg=item_bought]
|
||||
|
||||
Merchant (happy): Pleasure doing business with you!
|
||||
Miko (smile): Thanks, merchant!
|
||||
Advisor (pl5): Let's keep moving. We have ground to cover.
|
||||
|
||||
# ---- WAIT: Timed pause (seconds) --------------------------
|
||||
[wait time="1.0"]
|
||||
|
||||
Miko (neutral): Let's keep exploring.
|
||||
|
||||
# ---- JUMP & LABEL: Navigation -----------------------------
|
||||
jump secret_room
|
||||
|
||||
# ---- LABEL: farewell (unreachable via normal flow) --------
|
||||
label farewell
|
||||
Miko (smile): Goodbye for now!
|
||||
Advisor (pl5): Until next time.
|
||||
[end_timeline]
|
||||
|
||||
# ---- LABEL: secret_room -----------------------------------
|
||||
label secret_room
|
||||
|
||||
leave Merchant
|
||||
Miko (surprise): Hey, the merchant disappeared... and there's a hidden door here!
|
||||
Advisor (doubt): Careful, Miko. We don't know what's inside.
|
||||
Miko (neutral): You're right, but we have to check it out.
|
||||
Advisor (pl5): Very well. I'll follow your lead.
|
||||
|
||||
# ---- CONDITION with ELSE ----------------------------------
|
||||
if {player_has_key}:
|
||||
Miko (joy): Good thing we still have the ancient key. Let's open it!
|
||||
Advisor (surprise): The key glows faintly as you approach.
|
||||
Miko (smile): Here goes nothing...
|
||||
[signal arg=door_opened]
|
||||
else:
|
||||
Miko (anger): Darn, we used the key at the shop. How do we open this?
|
||||
Advisor (pl5): Maybe we can find another way around.
|
||||
Miko (doubt): I guess we'll have to search for another entrance.
|
||||
Advisor (doubt): Patience. Every lock has its key.
|
||||
|
||||
# ---- JUMP to farewell label -------------------------------
|
||||
Miko (smile): Well, that's the end of the test timeline!
|
||||
Advisor (pl5): A successful demonstration, I'd say.
|
||||
jump farewell
|
||||
# End
|
||||
1
docs/museums/dialogic/start_timeline.dtl.uid
Normal file
1
docs/museums/dialogic/start_timeline.dtl.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://f2wb7cq7gtv6
|
||||
Reference in New Issue
Block a user