-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgame.tscn
253 lines (213 loc) · 11.3 KB
/
game.tscn
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
[gd_scene load_steps=14 format=3 uid="uid://ccka0y7q5cqiw"]
[ext_resource type="Script" path="res://game.gd" id="1_vjsim"]
[ext_resource type="FontFile" uid="uid://dsiu2symk18fd" path="res://fonts/ibm_plex_mono_regular.ttf" id="1_xs2cr"]
[ext_resource type="Script" path="res://player.gd" id="2_ghc7u"]
[ext_resource type="Script" path="res://parser.gd" id="2_uctwy"]
[ext_resource type="Script" path="res://areas/area_manager.gd" id="3_bt8o5"]
[ext_resource type="PackedScene" uid="uid://dkdert4e57o2t" path="res://areas/area.tscn" id="3_ivh7q"]
[ext_resource type="Script" path="res://inputs/input_line.gd" id="6_4pary"]
[ext_resource type="PackedScene" uid="uid://dpfj1p6jarjv2" path="res://info_panel.tscn" id="6_5aepp"]
[ext_resource type="PackedScene" uid="uid://cqbuedbgj6pit" path="res://side_panel.tscn" id="9_fwmns"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ri1t3"]
bg_color = Color(0.156863, 0.156863, 0.156863, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5rxps"]
bg_color = Color(0.372549, 0.372549, 0.372549, 1)
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_lb8x2"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_12o73"]
[node name="game" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_vjsim")
[node name="player" type="Node" parent="."]
script = ExtResource("2_ghc7u")
[node name="parser" type="Node" parent="."]
script = ExtResource("2_uctwy")
[node name="area_manager" type="Node" parent="."]
script = ExtResource("3_bt8o5")
[node name="behind_inn" parent="area_manager" instance=ExtResource("3_ivh7q")]
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_top = -998.0
offset_bottom = -559.0
grow_vertical = 2
area_name = "backyard"
area_description = "You are in a small backyard, surrounded by half-timbered houses. A little shed stands crooked against the wall of a house. Not far from there, a heavy door leads to the inside of another house. Cooking noises and the smell of sautéed onions come from the other side. Other than that, there's only a small alley between two houses leading out of the backyard."
[node name="shed" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 320.0
offset_top = -512.0
offset_right = 570.0
offset_bottom = -148.0
area_name = "shed"
area_description = "You are standing in a small shed, roughly assembled from boards. A few rusty old tools are stored here. The door to the backyard hangs so loosely on its hinges that you probably wouldn't have had to unlock it in the first place."
[node name="city_gate" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = -1280.0
offset_top = -1856.0
offset_right = -1030.0
offset_bottom = -1656.0
area_name = "city gate"
area_description = "Around a small bend, a large city gate appears. The gate, made from large oak boards, is still closed. A tired looking guard leans against it."
[node name="street_1" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = -960.0
offset_top = -1792.0
offset_right = -710.0
offset_bottom = -1592.0
area_name = "street"
area_description = "You are standing on a cobblestone road that stretches to the east and west. A little further west, the road makes a turn north."
[node name="street_2" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = -640.0
offset_top = -1792.0
offset_right = -390.0
offset_bottom = -1592.0
area_name = "street"
area_description = "You are standing on a cobblestone road that stretches to the east and west. Not far to the west, the road makes a turn north."
[node name="street_3" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = -320.0
offset_top = -1792.0
offset_right = -70.0
offset_bottom = -1428.0
area_name = "street"
area_description = "You are standing on a cobblestone road that stretches to the east and west. Two-story houses stand tightly against each other on both sides. Not even a rat could squeeze between some of them. Most of the wooden shutters are still closed. Here, too, it stinks of garbage and urine."
[node name="street_4" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_top = -1792.0
offset_bottom = -1453.0
area_name = "street"
area_description = "You are standing on a cobblestone road that stretches to the east and west. On the side from which the alley led you to the street, there's the door to an inn. A sign dangling above the door shows a boar walking on two legs, holding a mug."
[node name="street_5" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 320.0
offset_top = -1792.0
offset_right = 570.0
offset_bottom = -1592.0
area_name = "street"
area_description = "You are standing on a cobblestone road that stretches to the east and west. To the east, the road makes a turn south."
[node name="street_6" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 640.0
offset_top = -1792.0
offset_right = 890.0
offset_bottom = -1592.0
area_name = "street"
area_description = "You are standing on a cobblestone road that stretches to the east and west. Not far to the east, the road makes a turn south."
[node name="street_7" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 960.0
offset_top = -1792.0
offset_right = 1210.0
offset_bottom = -1592.0
area_name = "street"
area_description = "You are standing on a cobblestone road that stretches to the east and west. A little further east, the road makes a turn south."
[node name="street_8" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 1280.0
offset_top = -1728.0
offset_right = 1530.0
offset_bottom = -1528.0
area_name = "street"
area_description = "Around a small bend, you see a group of ruffians. You do not dare to pass them, let alone talk to them."
[node name="taproom" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_top = -1408.0
offset_bottom = -919.0
area_name = "taproom"
area_description = "You are standing in a gloomy taproom. Hardly any light enters through the small windows; a few lanterns dangle from the ceiling, their light barely reaching the ground. Behind a wooden counter, the innkeeper sorts some mugs into a shelf on the wall. On one side of the room, there are stairs. Opposite the entrance, a door leads to the back of the building. Cooking noises and the smell of sautéed onions come from the other side."
[node name="stairs" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 320.0
offset_top = -1408.0
offset_right = 570.0
offset_bottom = -1208.0
area_name = "stairs"
area_description = "You are standing at a staircase. On one side, stone steps lead to the cellar. On the other side, a wooden staircase winds its way up."
[node name="cellar" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 640.0
offset_top = -1408.0
offset_right = 890.0
offset_bottom = -1208.0
area_name = "cellar"
area_description = "It's dark in the cellar. You can't see your hand in front of your eyes. From a corner, you hear a squeak."
[node name="upstairs_hallway" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 640.0
offset_top = -1152.0
offset_right = 890.0
offset_bottom = -938.0
area_name = "upstairs hallway"
area_description = "You are standing in the upstairs hallway. A lantern provides meager light. Two doors lead off from here, one to the left and one to the right."
[node name="room_1" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 960.0
offset_top = -1152.0
offset_right = 1210.0
offset_bottom = -938.0
area_name = "chamber"
area_description = "You are standing in a small chamber. Little light falls through a small window onto the dirty floor. An old man is snoring peacefully on a straw sack."
[node name="room_2" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 640.0
offset_top = -896.0
offset_right = 890.0
offset_bottom = -696.0
area_name = "chamber"
area_description = "This is it, this is your room. Finally. In one corner, there's a wooden bed. It looks endlessly inviting. Time to go to bed."
[node name="bed" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 960.0
offset_top = -896.0
offset_right = 1210.0
offset_bottom = -696.0
area_name = "bed"
area_description = "You made it. You found your way to your bed. \"What a night, and what a morning\", you think to yourself as your eyes finally fall shut again..."
[node name="kitchen" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_top = -896.0
offset_bottom = -557.0
area_name = "kitchen"
area_description = "You are standing in a small kitchen. The air is warm and thick. At a fireplace, the cook stands bent over a large pot. Dried herbs, onions, garlic and sausages dangle from the ceiling. Three doors lead out of the kitchen, into the taproom, a pantry, and the backyard."
[node name="pantry" parent="area_manager" instance=ExtResource("3_ivh7q")]
offset_left = 320.0
offset_top = -896.0
offset_right = 570.0
offset_bottom = -696.0
area_name = "pantry"
area_description = "You are standing in a small pantry, barely one meter by one meter. Countless groceries are piled up on shelves on the walls."
[node name="interface" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_ri1t3")
[node name="margins" type="MarginContainer" parent="interface"]
layout_mode = 2
theme_override_constants/margin_left = 20
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 20
theme_override_constants/margin_bottom = 20
[node name="columns" type="HBoxContainer" parent="interface/margins"]
layout_mode = 2
theme_override_constants/separation = 20
[node name="rows" type="VBoxContainer" parent="interface/margins/columns"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 20
[node name="info_panel" parent="interface/margins/columns/rows" instance=ExtResource("6_5aepp")]
layout_mode = 2
[node name="input_panel" type="PanelContainer" parent="interface/margins/columns/rows"]
custom_minimum_size = Vector2(2.08165e-12, 60)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_5rxps")
[node name="caret_space" type="HBoxContainer" parent="interface/margins/columns/rows/input_panel"]
layout_mode = 2
[node name="caret" type="Label" parent="interface/margins/columns/rows/input_panel/caret_space"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_xs2cr")
theme_override_font_sizes/font_size = 33
text = " > "
[node name="input_line" type="LineEdit" parent="interface/margins/columns/rows/input_panel/caret_space"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_fonts/font = ExtResource("1_xs2cr")
theme_override_font_sizes/font_size = 35
theme_override_styles/normal = SubResource("StyleBoxEmpty_lb8x2")
theme_override_styles/focus = SubResource("StyleBoxEmpty_12o73")
max_length = 42
script = ExtResource("6_4pary")
[node name="side_panel" parent="interface/margins/columns" instance=ExtResource("9_fwmns")]
layout_mode = 2
[connection signal="text_submitted" from="interface/margins/columns/rows/input_panel/caret_space/input_line" to="." method="_on_input_line_text_submitted"]
[connection signal="text_submitted" from="interface/margins/columns/rows/input_panel/caret_space/input_line" to="interface/margins/columns/rows/input_panel/caret_space/input_line" method="_on_text_submitted"]