summaryrefslogtreecommitdiffstats
path: root/cinematics/test1.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-02-05 22:02:42 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-02-05 23:11:06 +0200
commit8967f6bb6e8ecb3b5b4073424692ce0ddfec61cb (patch)
tree5961c0b5226d077c6b1e97c02c1f5fcc1d6a729f /cinematics/test1.gd
parentf53d1d99707c5063a35c0c68890e0947077108ad (diff)
Rework cinematicsHEADmain
Diffstat (limited to 'cinematics/test1.gd')
-rw-r--r--cinematics/test1.gd15
1 files changed, 15 insertions, 0 deletions
diff --git a/cinematics/test1.gd b/cinematics/test1.gd
new file mode 100644
index 0000000..9ef48b7
--- /dev/null
+++ b/cinematics/test1.gd
@@ -0,0 +1,15 @@
+class_name CinematicTest1
+extends Cinematic
+
+func _ready():
+ var player: Player = get_room_node("Player")
+ var npc: Node2D = get_room_node("CinematicTestNPC")
+ player.request_state_forced("DROP")
+
+ await say(player, "hello")
+ await say(npc, "well hi")
+ var answer = await ask(npc, "buy or sell?", ["buy", "sell"])
+ await say(npc, "it's %s time" % answer)
+
+ player.request_state_normal()
+ print("dialogue done, answer %s" % answer)