Moving map init to its own files

This commit is contained in:
Tyler Marques 2025-03-12 12:32:41 -04:00
parent f3b7067182
commit cae197aa1a
No known key found for this signature in database
GPG key ID: 7672EFD79378341C
7 changed files with 186 additions and 357 deletions

View file

@ -9,6 +9,7 @@ function hashStringToPosition(str) {
const z = ((hash >> 8) % 800) - 400;
return { x, y: 0, z };
}
//TODO: Make coordinateData come from gameState
export function getProvincePosition(coordinateData, loc) {
// Convert e.g. "Spa/sc" to "SPA_SC" if needed