mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-18 16:32:40 +00:00
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:
@@ -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")
|
||||
|
||||
@@ -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 "";
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ export enum GameMapType {
|
||||
Mars = "Mars",
|
||||
Britannia = "Britannia",
|
||||
GatewayToTheAtlantic = "Gateway to the Atlantic",
|
||||
Australia = "Australia",
|
||||
}
|
||||
|
||||
export enum GameType {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -17,6 +17,7 @@ const maps = [
|
||||
"SouthAmerica",
|
||||
"Britannia",
|
||||
"GatewayToTheAtlantic",
|
||||
"Australia",
|
||||
];
|
||||
|
||||
async function loadTerrainMaps() {
|
||||
|
||||
Reference in New Issue
Block a user