@@ -72,13 +72,9 @@ void TracksGame::Reset(){
7272vec2<double > TracksGame::NormalizeLongLat (double lon, double lat){
7373 // Helper to convert (longitude, latitude) to normalized coords
7474 //
75- // BC and AB border min/max:
76- // - lon_range: -139.1 to -110.0 (29.1 degrees)
77- // - lat_range: 48.3 to 60.0 (11.7 degrees)
78- // double x = (lon - (-139.1)) / 29.1; // 0 at west, 1 at east
79- // double y = (lat - 48.3) / 11.7; // 0 at south, 1 at north
80- double x = (lon - (-131.3 )) / (131.3 - 109.0 ); // 0 at west, 1 at east
81- double y = (lat - 47.4 ) / (59.4 - 47.4 ); // 0 at south, 1 at north
75+ // Top-left map corner is ~1 degree NW of Atlin (-133.7, 59.6).
76+ double x = (lon - (-134.7 )) / (134.7 - 109.0 ); // 0 at west, 1 at east
77+ double y = (lat - 47.4 ) / (60.6 - 47.4 ); // 0 at south, 1 at north
8278 return {x, y};
8379}
8480
@@ -92,10 +88,11 @@ void TracksGame::InitializeCities(){
9288
9389 // British Columbia - Coast
9490 cities.push_back ({" Vancouver" , NormalizeLongLat (-123.1 , 49.3 )}); // ~49.3°N, 123.1°W
91+ cities.push_back ({" Whistler" , NormalizeLongLat (-123.1 , 50.1 )}); // ~50.1°N, 123.1°W
9592 cities.push_back ({" Victoria" , NormalizeLongLat (-123.4 , 48.4 )}); // ~48.4°N, 123.4°W
9693 cities.push_back ({" Nanaimo" , NormalizeLongLat (-123.9 , 49.2 )}); // ~49.2°N, 123.9°W
9794 cities.push_back ({" Prince Rupert" , NormalizeLongLat (-130.3 , 54.3 )}); // ~54.3°N, 130.3°W
98- cities.push_back ({" Kitimat " , NormalizeLongLat (-128.7 , 54.1 )}); // ~54.1 °N, 128.7 °W
95+ cities.push_back ({" Smithers " , NormalizeLongLat (-127.2 , 54.8 )}); // ~54.8 °N, 127.2 °W
9996
10097 // British Columbia - Interior
10198 cities.push_back ({" Kamloops" , NormalizeLongLat (-120.3 , 50.7 )}); // ~50.7°N, 120.3°W
@@ -114,6 +111,7 @@ void TracksGame::InitializeCities(){
114111 cities.push_back ({" Fort St. John" , NormalizeLongLat (-120.8 , 56.2 )}); // ~56.2°N, 120.8°W
115112 cities.push_back ({" Dawson Creek" , NormalizeLongLat (-120.2 , 55.8 )}); // ~55.8°N, 120.2°W
116113 cities.push_back ({" Fort Nelson" , NormalizeLongLat (-122.7 , 58.8 )}); // ~58.8°N, 122.7°W
114+ cities.push_back ({" Atlin" , NormalizeLongLat (-133.7 , 59.6 )}); // ~59.6°N, 133.7°W
117115
118116 // Alberta - South
119117 cities.push_back ({" Calgary" , NormalizeLongLat (-114.1 , 51.0 )}); // ~51.0°N, 114.1°W
@@ -163,10 +161,12 @@ void TracksGame::InitializeTrackPaths(){
163161 std::vector<conn_def> connections = {
164162 // Vancouver area connections
165163 {" Vancouver" , " Victoria" , 2 , card_color_t ::Blue, false },
164+ {" Vancouver" , " Whistler" , 1 , card_color_t ::Black, false },
166165 {" Vancouver" , " Nanaimo" , 1 , card_color_t ::White, false },
167166 {" Victoria" , " Nanaimo" , 2 , card_color_t ::Green, false },
168167 {" Vancouver" , " Kamloops" , 4 , card_color_t ::Red, false },
169- {" Vancouver" , " Kamloops" , 4 , card_color_t ::Blue, true },
168+ {" Vancouver" , " Kamloops" , 4 , card_color_t ::Yellow, true },
169+ {" Whistler" , " Kamloops" , 6 , card_color_t ::Yellow, false },
170170
171171 // Interior BC connections
172172 {" Kamloops" , " Kelowna" , 2 , card_color_t ::Orange, false },
@@ -189,15 +189,16 @@ void TracksGame::InitializeTrackPaths(){
189189 {" Kamloops" , " Williams Lake" , 3 , card_color_t ::Black, false },
190190 {" Williams Lake" , " Quesnel" , 2 , card_color_t ::Orange, false },
191191 {" Quesnel" , " Prince George" , 2 , card_color_t ::White, false },
192- {" Prince George" , " Kitimat" , 5 , card_color_t ::Green, false },
193- {" Kitimat" , " Prince Rupert" , 3 , card_color_t ::Blue, false },
194- {" Prince George" , " Prince Rupert" , 6 , card_color_t ::Yellow, false },
192+ {" Prince George" , " Smithers" , 5 , card_color_t ::Green, false },
193+ {" Smithers" , " Prince Rupert" , 3 , card_color_t ::Blue, false },
195194
196195 // Far North BC
197- {" Prince George" , " Dawson Creek" , 5 , card_color_t ::Red , false },
196+ {" Prince George" , " Dawson Creek" , 5 , card_color_t ::Black , false },
198197 {" Dawson Creek" , " Fort St. John" , 1 , card_color_t ::White, false },
199198 {" Fort St. John" , " Fort Nelson" , 4 , card_color_t ::Black, false },
200199 {" Fort Nelson" , " High Level" , 5 , card_color_t ::Orange, false },
200+ {" Atlin" , " Fort Nelson" , 6 , card_color_t ::White, false },
201+ {" Atlin" , " Smithers" , 6 , card_color_t ::Orange, false },
201202
202203 // BC to Alberta main corridors
203204 {" Jasper" , " Hinton" , 1 , card_color_t ::Yellow, false },
@@ -218,6 +219,7 @@ void TracksGame::InitializeTrackPaths(){
218219 {" Calgary" , " Lethbridge" , 3 , card_color_t ::Blue, false },
219220 {" Lethbridge" , " Medicine Hat" , 3 , card_color_t ::Red, false },
220221 {" Medicine Hat" , " Calgary" , 4 , card_color_t ::Yellow, false },
222+ {" Lloydminster" , " Medicine Hat" , 6 , card_color_t ::Green, false },
221223
222224 // Northern Alberta
223225 {" Edmonton" , " Whitecourt" , 2 , card_color_t ::Orange, false },
@@ -388,7 +390,8 @@ void TracksGame::DealObjectives(){
388390 {" Dawson Creek" , " Vancouver" },
389391 {" Fort Nelson" , " Calgary" },
390392 {" Fort St. John" , " Kelowna" },
391- {" Kitimat" , " Calgary" },
393+ {" Atlin" , " Calgary" },
394+ {" Atlin" , " Edmonton" },
392395 {" Prince Rupert" , " Medicine Hat" },
393396 {" Grande Prairie" , " Vancouver" },
394397 {" Fort McMurray" , " Vancouver" },
@@ -1904,4 +1907,3 @@ bool TracksGame::Display(bool &enabled){
19041907 ImGui::End ();
19051908 return true ;
19061909}
1907-
0 commit comments