Add Giant World Map (#845)

## Description:
Adds giant world map. Uses same nations as former world map. Does not
include translations beyond English.
## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

1brucben

---------

Co-authored-by: evanpelle <evanpelle@gmail.com>
This commit is contained in:
1brucben
2025-05-24 04:26:01 +02:00
committed by GitHub
parent 2c4d2334dd
commit 08216855f7
12 changed files with 583 additions and 0 deletions
+1
View File
@@ -121,6 +121,7 @@
"map": {
"map": "Map",
"world": "World",
"worldmapgiant": "Giant World Map",
"europe": "Europe",
"mena": "MENA",
"northamerica": "North America",
File diff suppressed because one or more lines are too long
+271
View File
@@ -0,0 +1,271 @@
{
"name": "Giant_World_Map",
"width": 4110,
"height": 1948,
"nations": [
{
"coordinates": [777, 540],
"name": "United States",
"strength": 3,
"flag": "us"
},
{
"coordinates": [770.784, 287.776],
"name": "Canada",
"strength": 2,
"flag": "ca"
},
{
"coordinates": [777, 780],
"name": "Mexico",
"strength": 1,
"flag": "mx"
},
{
"coordinates": [1025, 744],
"name": "Cuba",
"strength": 1,
"flag": "cu"
},
{
"coordinates": [1085.728, 990],
"name": "Colombia",
"strength": 1,
"flag": "co"
},
{
"coordinates": [1228.6960000000001, 990],
"name": "Venezuela",
"strength": 1,
"flag": "ve"
},
{
"coordinates": [1220, 1485],
"name": "Argentina",
"strength": 1,
"flag": "ar"
},
{
"coordinates": [1330, 1190],
"name": "Brazil",
"strength": 1,
"flag": "br"
},
{
"coordinates": [2650, 1897],
"name": "Antarctica",
"strength": 3,
"flag": "aq"
},
{
"coordinates": [1469.048, 120.61200000000001],
"name": "Greenland",
"strength": 2,
"flag": "gl"
},
{
"coordinates": [1721.832, 236.99200000000002],
"name": "Iceland",
"strength": 1,
"flag": "is"
},
{
"coordinates": [1916.6000000000001, 393.576],
"name": "United Kingdom",
"strength": 3,
"flag": "gb"
},
{
"coordinates": [1837.864, 387.228],
"name": "Ireland",
"strength": 1,
"flag": "ie"
},
{
"coordinates": [1885, 550],
"name": "Spain",
"strength": 1,
"flag": "es"
},
{
"coordinates": [2080.288, 529],
"name": "Italy",
"strength": 1,
"flag": "it"
},
{
"coordinates": [1980, 455],
"name": "France",
"strength": 2,
"flag": "fr"
},
{
"coordinates": [2060, 425],
"name": "Germany",
"strength": 1,
"flag": "de"
},
{
"coordinates": [2111, 277],
"name": "Sweden",
"strength": 1,
"flag": "se"
},
{
"coordinates": [2165, 400],
"name": "Poland",
"strength": 1,
"flag": "pl"
},
{
"coordinates": [2205, 397.808],
"name": "Belarus",
"strength": 1,
"flag": "by"
},
{
"coordinates": [2223.256, 514.188],
"name": "Romania",
"strength": 1,
"flag": "ro"
},
{
"coordinates": [2405.592, 579.784],
"name": "Turkey",
"strength": 1,
"flag": "tr"
},
{
"coordinates": [2007.768, 281.428],
"name": "Norway",
"strength": 1,
"flag": "no"
},
{
"coordinates": [2200.464, 281.428],
"name": "Finland",
"strength": 1,
"flag": "fi"
},
{
"coordinates": [2277.128, 443],
"name": "Ukraine",
"strength": 1,
"flag": "ua"
},
{
"coordinates": [2480, 311],
"name": "Russia",
"strength": 3,
"flag": "ru"
},
{
"coordinates": [3175, 400],
"name": "Mongolia",
"strength": 1,
"flag": "mn"
},
{
"coordinates": [3170, 680],
"name": "China",
"strength": 3,
"flag": "cn"
},
{
"coordinates": [2834.496, 789.268],
"name": "India",
"strength": 2,
"flag": "in"
},
{
"coordinates": [2643.8720000000003, 505.72400000000005],
"name": "Kazakhstan",
"strength": 1,
"flag": "kz"
},
{
"coordinates": [2565.136, 653.844],
"name": "Islamic Republic Of Iran",
"strength": 1,
"flag": "ir"
},
{
"coordinates": [2440.8160000000003, 742.716],
"name": "Saudi Arabia",
"strength": 1,
"flag": "sa"
},
{
"coordinates": [3478, 1370],
"name": "Australia",
"strength": 2,
"flag": "au"
},
{
"coordinates": [3880, 1516],
"name": "New Zealand",
"strength": 0.5,
"flag": "nz"
},
{
"coordinates": [1902.096, 700],
"name": "Algeria",
"strength": 1,
"flag": "dz"
},
{
"coordinates": [2134.16, 680],
"name": "Libyan Arab Jamahiriya",
"strength": 1,
"flag": "ly"
},
{
"coordinates": [2262.6240000000003, 708.86],
"name": "Egypt",
"strength": 1,
"flag": "eg"
},
{
"coordinates": [1995.336, 867.5600000000001],
"name": "Niger",
"strength": 1,
"flag": "ne"
},
{
"coordinates": [2304.064, 859.096],
"name": "Sudan",
"strength": 1,
"flag": "sd"
},
{
"coordinates": [2225.328, 1074.928],
"name": "The Democratic Republic of the Congo",
"strength": 1,
"flag": "cd"
},
{
"coordinates": [2391.088, 937.388],
"name": "Ethiopia",
"strength": 1,
"flag": "et"
},
{
"coordinates": [2188, 1374.0120000000002],
"name": "South Africa",
"strength": 1,
"flag": "za"
},
{
"coordinates": [2459, 1230],
"name": "Madagascar",
"strength": 0.5,
"flag": "mg"
},
{
"coordinates": [2170, 880],
"name": "Chad",
"strength": 1,
"flag": "td"
}
]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

+1
View File
@@ -6,6 +6,7 @@ import { getMapsImage } from "../utilities/Maps";
// Add map descriptions
export const MapDescription: Record<keyof typeof GameMapType, string> = {
World: "World",
WorldMapGiant: "Giant World Map",
Europe: "Europe",
EuropeClassic: "Europe Classic",
Mena: "MENA",
+3
View File
@@ -21,6 +21,7 @@ import northAmerica from "../../../resources/maps/NorthAmericaThumb.webp";
import oceania from "../../../resources/maps/OceaniaThumb.webp";
import pangaea from "../../../resources/maps/PangaeaThumb.webp";
import southAmerica from "../../../resources/maps/SouthAmericaThumb.webp";
import worldmapgiant from "../../../resources/maps/WorldMapGiantThumb.webp";
import world from "../../../resources/maps/WorldMapThumb.webp";
import { GameMapType } from "../../core/game/Game";
@@ -29,6 +30,8 @@ export function getMapsImage(map: GameMapType): string {
switch (map) {
case GameMapType.World:
return world;
case GameMapType.WorldMapGiant:
return worldmapgiant;
case GameMapType.Oceania:
return oceania;
case GameMapType.Europe:
+1
View File
@@ -61,6 +61,7 @@ const numPlayersConfig = {
[GameMapType.BlackSea]: [40, 50, 30],
[GameMapType.Pangaea]: [40, 20, 30],
[GameMapType.World]: [150, 80, 50],
[GameMapType.WorldMapGiant]: [150, 100, 60],
[GameMapType.KnownWorld]: [50, 40, 30],
[GameMapType.Halkidiki]: [50, 40, 30],
} as const satisfies Record<GameMapType, [number, number, number]>;
+2
View File
@@ -54,6 +54,7 @@ export const ColoredTeams: Record<string, Team> = {
export enum GameMapType {
World = "World",
WorldMapGiant = "Giant World Map",
Europe = "Europe",
EuropeClassic = "Europe Classic",
Mena = "Mena",
@@ -82,6 +83,7 @@ export enum GameMapType {
export const mapCategories: Record<string, GameMapType[]> = {
continental: [
GameMapType.World,
GameMapType.WorldMapGiant,
GameMapType.NorthAmerica,
GameMapType.SouthAmerica,
GameMapType.Europe,
+1
View File
@@ -24,6 +24,7 @@ interface NationMapModule {
// Mapping from GameMap enum values to file names
const MAP_FILE_NAMES: Record<GameMapType, string> = {
[GameMapType.World]: "WorldMap",
[GameMapType.WorldMapGiant]: "WorldMapGiant",
[GameMapType.Europe]: "Europe",
[GameMapType.Mena]: "Mena",
[GameMapType.NorthAmerica]: "NorthAmerica",
+1
View File
@@ -7,6 +7,7 @@ const maps = [
"Africa",
"Asia",
"WorldMap",
"WorldMapGiant",
"BlackSea",
"Europe",
"EuropeClassic",