about summary refs log tree commit diff stats
path: root/js/story-interpreter/world.dsl
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2023-12-28 21:45:37 -0500
committerelioat <elioat@tilde.institute>2023-12-28 21:45:37 -0500
commitb63f67c6596cb93da7db010b7fd390ff75f7e892 (patch)
treed1295b4fad260b7e1999ea262a06682a8399b492 /js/story-interpreter/world.dsl
parent42ec1a26d1e2c671d0f64aaf14a5025910d95c9c (diff)
downloadtour-b63f67c6596cb93da7db010b7fd390ff75f7e892.tar.gz
*
Diffstat (limited to 'js/story-interpreter/world.dsl')
-rw-r--r--js/story-interpreter/world.dsl32
1 files changed, 32 insertions, 0 deletions
diff --git a/js/story-interpreter/world.dsl b/js/story-interpreter/world.dsl
new file mode 100644
index 0000000..3e75a7a
--- /dev/null
+++ b/js/story-interpreter/world.dsl
@@ -0,0 +1,32 @@
+room "Kitchen" {
+    description "A small, cozy kitchen. There's a smell of cookies baking."
+    
+    item "Cookie Jar" {
+        description "A ceramic jar filled with delicious cookies."
+        action "take" {
+            effect "You take a cookie from the jar."
+        }
+    }
+
+    animal "Cat" {
+        description "A small black cat is sitting on the counter."
+        action "talk" {
+            effect "The cat meows at you."
+        }
+    }
+
+    connection "north" to "Living Room"
+}
+
+room "Living Room" {
+    description "A large living room with a comfortable couch and a TV."
+    
+    item "Remote Control" {
+        description "A remote control for the TV."
+        action "use" {
+            effect "You turn on the TV. The news is on."
+        }
+    }
+
+    connection "south" to "Kitchen"
+}
\ No newline at end of file