summary refs log tree commit diff stats
path: root/racing/router.gd
diff options
context:
space:
mode:
Diffstat (limited to 'racing/router.gd')
-rw-r--r--racing/router.gd22
1 files changed, 21 insertions, 1 deletions
diff --git a/racing/router.gd b/racing/router.gd index ea3693f..627412d 100644 --- a/racing/router.gd +++ b/racing/router.gd
@@ -72,7 +72,13 @@ const LL2_AREAS = [
72 {"title": "The Sapient", "pos": [-36, 36, -36]}, 72 {"title": "The Sapient", "pos": [-36, 36, -36]},
73 {"title": "The Ethereal", "pos": [-42, 0, -22]}, 73 {"title": "The Ethereal", "pos": [-42, 0, -22]},
74 {"title": "The Learned", "pos": [34, 1, -64], "no_start": true}, 74 {"title": "The Learned", "pos": [34, 1, -64], "no_start": true},
75 {"title": "Whispers Behind Quiet Walls", "pos": [44, 0, -51], "no_start": true, "long": true}, 75 {
76 "title": "Whispers Behind Quiet Walls",
77 "pos": [44, 0, -51],
78 "no_start": true,
79 "long": true,
80 "small_font": true
81 },
76 {"title": "The Lunar", "pos": [45, 0, -22]}, 82 {"title": "The Lunar", "pos": [45, 0, -22]},
77 {"title": "The Arcadian", "pos": [86, 0, -53]}, 83 {"title": "The Arcadian", "pos": [86, 0, -53]},
78 {"title": "The Frozen", "pos": [84, 0, -27]}, 84 {"title": "The Frozen", "pos": [84, 0, -27]},
@@ -177,3 +183,17 @@ func choose_route(levelchoice: int, lengthchoice: int):
177 found = true 183 found = true
178 184
179 return [level_name, start_pos, end_pos] 185 return [level_name, start_pos, end_pos]
186
187
188func get_area(level, name):
189 var areas_slot
190 if level == "level1":
191 areas_slot = LL1_AREAS
192 elif level == "level2":
193 areas_slot = LL2_AREAS
194
195 for item in areas_slot:
196 if item["title"] == name:
197 return item
198
199 return {"title": "Error"}