mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:40:42 +00:00
Adding Iceland map (#323)
This is a map of Iceland. It has 8 nations - the 8 regions of Iceland.         
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "Iceland",
|
||||
"width": 2000,
|
||||
"height": 1500,
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [455, 1115],
|
||||
"name": "Southern Peninsula",
|
||||
"strength": 2,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [550, 1050],
|
||||
"name": "Capital Region",
|
||||
"strength": 2,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [370, 810],
|
||||
"name": "Western Region",
|
||||
"strength": 1,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [290, 560],
|
||||
"name": "Westfjords",
|
||||
"strength": 2,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [790, 555],
|
||||
"name": "Northwestern Region",
|
||||
"strength": 2,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [1050, 1235],
|
||||
"name": "Southern Region",
|
||||
"strength": 2,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [1240, 660],
|
||||
"name": "Northeastern Region",
|
||||
"strength": 2,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [1740, 740],
|
||||
"name": "Eastern Region",
|
||||
"strength": 2,
|
||||
"flag": "is"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 662 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 367 KiB |
@@ -18,6 +18,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
Britannia: "Britannia",
|
||||
GatewayToTheAtlantic: "Gateway to the Atlantic",
|
||||
Australia: "Australia",
|
||||
Iceland: "Iceland",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -11,6 +11,7 @@ import mars from "../../../resources/maps/MarsThumb.png";
|
||||
import britannia from "../../../resources/maps/BritanniaThumb.png";
|
||||
import gatewayToTheAtlantic from "../../../resources/maps/GatewayToTheAtlanticThumb.png";
|
||||
import australia from "../../../resources/maps/AustraliaThumb.png";
|
||||
import iceland from "../../../resources/maps/IcelandThumb.png";
|
||||
|
||||
import { GameMapType } from "../../core/game/Game";
|
||||
|
||||
@@ -42,6 +43,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return gatewayToTheAtlantic;
|
||||
case GameMapType.Australia:
|
||||
return australia;
|
||||
case GameMapType.Iceland:
|
||||
return iceland;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ export enum GameMapType {
|
||||
Britannia = "Britannia",
|
||||
GatewayToTheAtlantic = "Gateway to the Atlantic",
|
||||
Australia = "Australia",
|
||||
Iceland = "Iceland",
|
||||
}
|
||||
|
||||
export enum GameType {
|
||||
|
||||
@@ -37,6 +37,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
|
||||
[GameMapType.Britannia]: "Britannia",
|
||||
[GameMapType.GatewayToTheAtlantic]: "GatewayToTheAtlantic",
|
||||
[GameMapType.Australia]: "Australia",
|
||||
[GameMapType.Iceland]: "Iceland",
|
||||
};
|
||||
|
||||
class GameMapLoader {
|
||||
|
||||
@@ -18,6 +18,7 @@ const maps = [
|
||||
"Britannia",
|
||||
"GatewayToTheAtlantic",
|
||||
"Australia",
|
||||
"Iceland",
|
||||
];
|
||||
|
||||
async function loadTerrainMaps() {
|
||||
|
||||
@@ -287,6 +287,7 @@ function getNextMap(): GameMapType {
|
||||
Mars: 2,
|
||||
Britannia: 2,
|
||||
GatewayToTheAtlantic: 2,
|
||||
Iceland: 2,
|
||||
};
|
||||
|
||||
Object.keys(GameMapType).forEach((key) => {
|
||||
|
||||
Reference in New Issue
Block a user