Duwibi
2025-03-25 00:44:57 +02:00
committed by GitHub
parent 6a82b8eefc
commit ab44751b08
11 changed files with 65 additions and 0 deletions
File diff suppressed because one or more lines are too long
+55
View File
@@ -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

+1
View File
@@ -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")
+3
View File
@@ -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 "";
}
+1
View File
@@ -52,6 +52,7 @@ export enum GameMapType {
Britannia = "Britannia",
GatewayToTheAtlantic = "Gateway to the Atlantic",
Australia = "Australia",
Iceland = "Iceland",
}
export enum GameType {
+1
View File
@@ -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 {
+1
View File
@@ -18,6 +18,7 @@ const maps = [
"Britannia",
"GatewayToTheAtlantic",
"Australia",
"Iceland",
];
async function loadTerrainMaps() {
+1
View File
@@ -287,6 +287,7 @@ function getNextMap(): GameMapType {
Mars: 2,
Britannia: 2,
GatewayToTheAtlantic: 2,
Iceland: 2,
};
Object.keys(GameMapType).forEach((key) => {