Added Australia map with 7 bots and their flags (#306)

This is a map of the Australian country. It has 7 bots - the 7 states of
the country. This is my first time making a pull request, so I'm sorry
if i messed something up or something doesn't work.
This commit is contained in:
Duwibi
2025-03-21 15:49:10 -07:00
committed by GitHub
parent e02361c2f4
commit b72032e6f1
17 changed files with 515 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
SouthAmerica: "South America",
Britannia: "Britannia",
GatewayToTheAtlantic: "Gateway to the Atlantic",
Australia: "Australia",
};
@customElement("map-display")
+3
View File
@@ -10,6 +10,7 @@ import asia from "../../../resources/maps/AsiaThumb.png";
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 { GameMapType } from "../../core/game/Game";
@@ -39,6 +40,8 @@ export function getMapsImage(map: GameMapType): string {
return britannia;
case GameMapType.GatewayToTheAtlantic:
return gatewayToTheAtlantic;
case GameMapType.Australia:
return australia;
default:
return "";
}
+1
View File
@@ -51,6 +51,7 @@ export enum GameMapType {
Mars = "Mars",
Britannia = "Britannia",
GatewayToTheAtlantic = "Gateway to the Atlantic",
Australia = "Australia",
}
export enum GameType {
+1
View File
@@ -36,6 +36,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
[GameMapType.SouthAmerica]: "SouthAmerica",
[GameMapType.Britannia]: "Britannia",
[GameMapType.GatewayToTheAtlantic]: "GatewayToTheAtlantic",
[GameMapType.Australia]: "Australia",
};
class GameMapLoader {
+1
View File
@@ -17,6 +17,7 @@ const maps = [
"SouthAmerica",
"Britannia",
"GatewayToTheAtlantic",
"Australia",
];
async function loadTerrainMaps() {