-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonster_subgame.go
155 lines (117 loc) · 4.15 KB
/
monster_subgame.go
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package main
import "github.com/seletskiy/go-android-rpc/android"
type MonsterSubgame struct {
Subgame
GlobalLocations map[string]Location
}
func (subgame MonsterSubgame) GetButtonTitle() string {
return "Monster Title"
}
func (subgame MonsterSubgame) GetLayoutName() string {
return "main_layout"
}
func (subgame MonsterSubgame) Enter(state *State) {
defer android.PanicHandler()
subgame.Subgame.Enter(state)
monsterQuestion := `<p>"Alive? Energy? Energy."</p>
<p>You start to feel yourself more clearly.</p>
<p>Start to feel something around you. And you realize the something is alive.</p>
<p>You don't need another eternity to understand that the something is deadly strange, deadly dark and deadly dangerous. You feel it doesn't even know who are you, but even more you know it want you not to be.</p>`
locations := map[string]Location{
"1": &BaseLocation{
Description: `<p><b>It is pitch black.</b></p>
<p>You try to make a move to escape, but barely feel your body.</p>
<p>Just powerful clammy darkness and strange feeling of existence and non-existence at the same time.</p>`,
},
"2": &BaseLocation{
ButtonTitle: "Try to move",
Description: `<p>You feel different. Time goes different.</p><p>You feel your mind wandering.</p>`,
},
"3": &BaseLocation{
ButtonTitle: `"Who are you?"`,
Description: `<p>"You? Things? Cold. Solid. Energy. Dark."</p>`,
},
"4.1": &BaseLocation{
ButtonTitle: "Play.",
Description: monsterQuestion,
},
"4.2": &BaseLocation{
ButtonTitle: "Toys.",
Description: monsterQuestion,
},
"4.3": &BaseLocation{
ButtonTitle: "Mother.",
Description: monsterQuestion,
},
"4.4": &BaseLocation{
ButtonTitle: "Father.",
Description: monsterQuestion,
},
"5": &BaseLocation{
ButtonTitle: "Run away",
Description: "<p>It is pitch black. There is nowhere to run.</p>",
},
"6.1": &BaseLocation{
ButtonTitle: "Anger",
Description: "<p>You feel dark presence goes away.</p>",
},
"6.2": &BaseLocation{
ButtonTitle: "Panic",
Description: `<p>You feel <font color="red">pain</font>.</p>`,
},
"7": &BaseLocation{
ButtonTitle: "Anger",
Description: `<p>You feel dark presence goes away.</p>
<p>You suddenly became aware of your body.</p>
<p>Rumbling around you. Low and pleasant rumbling. G-r-r-r-r. Like a tiger. Like a... an engines. Ginormous photon engines.</p>
<p>You're waking up.</p>
<p>You're seing you father. You're feeling bright <font color="red">pain</font>.</p>`,
},
"8": &BaseLocation{
ButtonTitle: "Cry",
Description: `<p>Your father is looking at you inquiringly.</p>
<p>"It's a just bad dream.", he says.</p>`,
},
"9": &BaseLocation{
ButtonTitle: `I've fought with a monster!`,
Description: `<p>Your father puts you on your feet.</p>`,
},
"10": &BaseLocation{
ButtonTitle: `"I feel pain!"`,
Description: `<p>"You'd better see your mom. She's our lovely doctor."</p>`,
},
"11": &BaseLocation{
ButtonTitle: `"Are we <b>home</b>?"`,
Description: `<p>"Not yet. But it looks like we are so close".</p>
<p>Grin touches your father's lips.</p>`,
},
"12": &BaseLocation{
ButtonTitle: `End`,
Description: `<p>Father takes your away from Imaginarium and locks the door on <b>magnet lock.</b></p>`,
},
}
locations["1"].Link(locations["2"])
locations["2"].Link(locations["3"])
locations["3"].Link(locations["4.1"])
locations["3"].Link(locations["4.2"])
locations["3"].Link(locations["4.3"])
locations["3"].Link(locations["4.4"])
locations["4.1"].Link(locations["5"])
locations["4.2"].Link(locations["5"])
locations["4.3"].Link(locations["5"])
locations["4.4"].Link(locations["5"])
locations["4.4"].Link(locations["5"])
locations["5"].Link(locations["6.1"])
locations["5"].Link(locations["6.2"])
locations["6.1"].Link(locations["7"])
locations["6.2"].Link(locations["7"])
locations["7"].Link(locations["8"])
locations["8"].Link(locations["9"])
locations["9"].Link(locations["10"])
locations["10"].Link(locations["11"])
locations["11"].Link(locations["12"])
locations["12"].Link(subgame.GlobalLocations["bunk"])
subgame.SetLayoutName("main_layout")
subgame.SetLocation(locations["1"])
subgame.Start()
}