-
Notifications
You must be signed in to change notification settings - Fork 1
/
dungeon.txt
65 lines (58 loc) · 1.11 KB
/
dungeon.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
commands
tree "You see a circle of trees."
pit "You see a dark bottomless pit."
light "You see an endless white light."
box "You see an ominous box with a smaller glitter inside."
treasure "You find a pile of sparkling treasure!"
fall "You try to move past the pit, but slip and fall into oblivion."
reset "Type 'reincarnate' for a new life."
end
events
moveNorth north
moveSouth south
moveEast east
moveWest west
openBox open
reincarnate reincarnate
end
state idle
action light
transitions
moveNorth => treeState
moveSouth => pitState
.
end
state treeState
action tree
transitions
moveSouth => idle
.
end
state pitState
action pit
transitions
moveNorth => idle
moveSouth => fallState
moveEast => boxState
.
end
state boxState
action box
transitions
moveWest => pitState
openBox => treasureState
.
end
state treasureState
action treasure
transitions
moveWest => pitState
.
end
state fallState
action fall
transitions
reincarnate => idle
.
action reset
end