mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-24 17:05:04 +00:00
Moving map init to its own files
This commit is contained in:
parent
f3b7067182
commit
cae197aa1a
7 changed files with 186 additions and 357 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue