mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 07:02:12 +00:00
Add new map, iberia, france, north africa (#285)
Addition of new map, 'Gateway to the Atlantic' covering Iberia, France, and North Africa. Tested via loading to local build, ensuring the game launched succesfully, and ran a full game through to completion. Confirmed thumbnail is displayed in the UI. Discovered possibly undocumented bug: minimap binary generation fails if either the width or height of the provided map image is an odd number. Not sure what proper tests for a new map would look like, hope this is sufficient testing.      
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,187 @@
|
||||
{
|
||||
"name": "Britannia",
|
||||
"width": 2000,
|
||||
"height": 1397,
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [2144, 344],
|
||||
"name": "Switzerland",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1964, 371],
|
||||
"name": "Burgundy",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1334, 537],
|
||||
"name": "Aquitaine",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [2115, 684],
|
||||
"name": "Provence",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1207, 763],
|
||||
"name": "The Basque",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1281, 1142],
|
||||
"name": "Valencia",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1660, 891],
|
||||
"name": "Catalan",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [561, 764],
|
||||
"name": "Galicia",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1004, 1436],
|
||||
"name": "Granada",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [431, 1197],
|
||||
"name": "Portugal",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [560, 1894],
|
||||
"name": "Morocco",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1609, 1837],
|
||||
"name": "Algeria",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1733, 622],
|
||||
"name": "Armagnac",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [896, 1240],
|
||||
"name": "Cordoba",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [636, 1781],
|
||||
"name": "Seville",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [750, 873],
|
||||
"name": "Leon",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1001, 882],
|
||||
"name": "Castille",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [775, 724],
|
||||
"name": "Asturias",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1755, 1130],
|
||||
"name": "The Old Ones",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [2097, 1670],
|
||||
"name": "Jesuit Monks",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [979, 1013],
|
||||
"name": "Spain",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [468, 930],
|
||||
"name": "Sardines",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1667, 96],
|
||||
"name": "Paris",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1716, 296],
|
||||
"name": "Baguettes",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1017, 180],
|
||||
"name": "Brittany",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [2072, 567],
|
||||
"name": "An Anti-Pope",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1355, 76],
|
||||
"name": "Normandy",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1402, 529],
|
||||
"name": "Wine",
|
||||
"strength": 1,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1475, 1657],
|
||||
"name": "French Foreign Legion",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1685, 417],
|
||||
"name": "France",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 MiB |
File diff suppressed because one or more lines are too long
@@ -16,6 +16,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
Mars: "Mars",
|
||||
SouthAmerica: "South America",
|
||||
Britannia: "Britannia",
|
||||
GatewayToTheAtlantic: "Gateway to the Atlantic",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -9,6 +9,7 @@ import africa from "../../../resources/maps/Africa.png";
|
||||
import asia from "../../../resources/maps/Asia.png";
|
||||
import mars from "../../../resources/maps/Mars.png";
|
||||
import britannia from "../../../resources/maps/Britannia.png";
|
||||
import gatewayToTheAtlantic from "../../../resources/maps/GatewayToTheAtlantic.png";
|
||||
|
||||
import { GameMapType } from "../../core/game/Game";
|
||||
|
||||
@@ -36,6 +37,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return mars;
|
||||
case GameMapType.Britannia:
|
||||
return britannia;
|
||||
case GameMapType.GatewayToTheAtlantic:
|
||||
return gatewayToTheAtlantic;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ export enum GameMapType {
|
||||
Asia = "Asia",
|
||||
Mars = "Mars",
|
||||
Britannia = "Britannia",
|
||||
GatewayToTheAtlantic = "Gateway to the Atlantic",
|
||||
}
|
||||
|
||||
export enum GameType {
|
||||
|
||||
@@ -35,6 +35,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
|
||||
[GameMapType.Mars]: "Mars",
|
||||
[GameMapType.SouthAmerica]: "SouthAmerica",
|
||||
[GameMapType.Britannia]: "Britannia",
|
||||
[GameMapType.GatewayToTheAtlantic]: "GatewayToTheAtlantic",
|
||||
};
|
||||
|
||||
class GameMapLoader {
|
||||
|
||||
@@ -13,6 +13,7 @@ const maps = [
|
||||
"Oceania",
|
||||
"NorthAmerica",
|
||||
"SouthAmerica",
|
||||
"GatewayToTheAtlantic",
|
||||
];
|
||||
|
||||
async function loadTerrainMaps() {
|
||||
|
||||
Reference in New Issue
Block a user