summaryrefslogtreecommitdiff
path: root/demo.stage
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-18 00:45:12 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-18 00:45:12 -0700
commitcfa0ff5e6a45ce2d17fe18a09268acb2c0eb6724 (patch)
tree6f60b73f14a4b1270da784997dc882fabe8151ab /demo.stage
parent2abb355a18934d72006e2958cf79fae1b18868ca (diff)
downloadstage-cfa0ff5e6a45ce2d17fe18a09268acb2c0eb6724.tar.gz
stage-cfa0ff5e6a45ce2d17fe18a09268acb2c0eb6724.tar.bz2
stage-cfa0ff5e6a45ce2d17fe18a09268acb2c0eb6724.tar.xz
stage-cfa0ff5e6a45ce2d17fe18a09268acb2c0eb6724.zip
The basic structure is complete.
Diffstat (limited to 'demo.stage')
-rw-r--r--demo.stage23
1 files changed, 19 insertions, 4 deletions
diff --git a/demo.stage b/demo.stage
index 78e705c..58aee3e 100644
--- a/demo.stage
+++ b/demo.stage
@@ -32,7 +32,16 @@ game
32 32
33situation <<main>> 33situation <<main>>
34{ 34{
35 player.inventory = []; 35 command: "there" hi
36 {
37 }
38 setup
39 {
40 player.inventory = [];
41 }
42 enter
43 {
44 }
36} 45}
37 46
38function hello() 47function hello()
@@ -41,11 +50,17 @@ function hello()
41 50
42situation <<start>> 51situation <<start>>
43{ 52{
44 display('''You are here, there is a wrench sitting on the table.'''); 53 enter
45 global.command("use", 54 {
55 display('''You are here, there is a wrench sitting on the table.''');
56 test("use", bob );
57 }
46} 58}
47 59
48situation <<end>> 60situation <<end>>
49{ 61{
50 goto( <<start>> ); 62 enter
63 {
64 goto( <<start>> );
65 }
51} 66}