summary refs log tree commit diff stats
path: root/racing/router.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-02-11 12:43:31 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-02-11 12:43:31 -0500
commit2c7590286c26c44a7cdd80a72c782f253ba740de (patch)
tree2fbb61c36373b8f1f213f1c89e20440a3cf51cd9 /racing/router.gd
parent56b1b65232539860d68a5ff03eb43bd99c11f52b (diff)
downloadlingo-race-2c7590286c26c44a7cdd80a72c782f253ba740de.tar.gz
lingo-race-2c7590286c26c44a7cdd80a72c782f253ba740de.tar.bz2
lingo-race-2c7590286c26c44a7cdd80a72c782f253ba740de.zip
Shrink font for WBQW
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"}