mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 11:38:11 +00:00
add South America map (#184)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,241 @@
|
||||
{
|
||||
"name": "Americas",
|
||||
"width": 2000,
|
||||
"height": 2000,
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [377, 192],
|
||||
"name": "Bahamas",
|
||||
"strength": 1,
|
||||
"flag": "bs"
|
||||
},
|
||||
{
|
||||
"coordinates": [350, 248],
|
||||
"name": "Cuba",
|
||||
"strength": 1,
|
||||
"flag": "cu"
|
||||
},
|
||||
{
|
||||
"coordinates": [572, 315],
|
||||
"name": "Dominican Republic",
|
||||
"strength": 1,
|
||||
"flag": "do"
|
||||
},
|
||||
{
|
||||
"coordinates": [507, 310],
|
||||
"name": "Haiti",
|
||||
"strength": 1,
|
||||
"flag": "ht"
|
||||
},
|
||||
{
|
||||
"coordinates": [395, 330],
|
||||
"name": "Jamaica",
|
||||
"strength": 1,
|
||||
"flag": "jm"
|
||||
},
|
||||
{
|
||||
"coordinates": [640, 327],
|
||||
"name": "Puerto Rico",
|
||||
"strength": 1,
|
||||
"flag": "pr"
|
||||
},
|
||||
{
|
||||
"coordinates": [760, 490],
|
||||
"name": "Trinidad & Tobago",
|
||||
"strength": 1,
|
||||
"flag": "tt"
|
||||
},
|
||||
{
|
||||
"coordinates": [130, 340],
|
||||
"name": "Belize",
|
||||
"strength": 1,
|
||||
"flag": "bz"
|
||||
},
|
||||
{
|
||||
"coordinates": [258, 512],
|
||||
"name": "Costa Rica",
|
||||
"strength": 1,
|
||||
"flag": "cr"
|
||||
},
|
||||
{
|
||||
"coordinates": [140, 440],
|
||||
"name": "El Salvador",
|
||||
"strength": 1,
|
||||
"flag": "sv"
|
||||
},
|
||||
{
|
||||
"coordinates": [270, 150],
|
||||
"name": "Florida",
|
||||
"strength": 1,
|
||||
"flag": "us"
|
||||
},
|
||||
{
|
||||
"coordinates": [90, 385],
|
||||
"name": "Guatemala",
|
||||
"strength": 1,
|
||||
"flag": "gt"
|
||||
},
|
||||
{
|
||||
"coordinates": [210, 390],
|
||||
"name": "Honduras",
|
||||
"strength": 1,
|
||||
"flag": "hn"
|
||||
},
|
||||
{
|
||||
"coordinates": [50, 45],
|
||||
"name": "Louisiana",
|
||||
"strength": 1,
|
||||
"flag": "us"
|
||||
},
|
||||
{
|
||||
"coordinates": [210, 440],
|
||||
"name": "Nicaragua",
|
||||
"strength": 1,
|
||||
"flag": "ni"
|
||||
},
|
||||
{
|
||||
"coordinates": [350, 514],
|
||||
"name": "Panama",
|
||||
"strength": 1,
|
||||
"flag": "pa"
|
||||
},
|
||||
{
|
||||
"coordinates": [670, 800],
|
||||
"name": "Amazonas",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [1250, 980],
|
||||
"name": "Bahia",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [740, 1180],
|
||||
"name": "Bolivia",
|
||||
"strength": 1,
|
||||
"flag": "bo"
|
||||
},
|
||||
{
|
||||
"coordinates": [770, 1760],
|
||||
"name": "Buenos Aires",
|
||||
"strength": 1,
|
||||
"flag": "ar"
|
||||
},
|
||||
{
|
||||
"coordinates": [670, 1250],
|
||||
"name": "Catamarca",
|
||||
"strength": 1,
|
||||
"flag": "ar"
|
||||
},
|
||||
{
|
||||
"coordinates": [1230, 805],
|
||||
"name": "Ceará",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [580, 1280],
|
||||
"name": "Chile",
|
||||
"strength": 1,
|
||||
"flag": "cl"
|
||||
},
|
||||
{
|
||||
"coordinates": [480, 620],
|
||||
"name": "Colombia",
|
||||
"strength": 1,
|
||||
"flag": "co"
|
||||
},
|
||||
{
|
||||
"coordinates": [360, 740],
|
||||
"name": "Ecuador",
|
||||
"strength": 1,
|
||||
"flag": "ec"
|
||||
},
|
||||
{
|
||||
"coordinates": [820, 1792],
|
||||
"name": "Falklands",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [960, 620],
|
||||
"name": "French Guyana",
|
||||
"strength": 1,
|
||||
"flag": "gf"
|
||||
},
|
||||
{
|
||||
"coordinates": [80, 720],
|
||||
"name": "Galapagos",
|
||||
"strength": 1,
|
||||
"flag": "ec"
|
||||
},
|
||||
{
|
||||
"coordinates": [800, 575],
|
||||
"name": "Guyana",
|
||||
"strength": 1,
|
||||
"flag": "gy"
|
||||
},
|
||||
{
|
||||
"coordinates": [1070, 1090],
|
||||
"name": "Minas Gerais",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [940, 820],
|
||||
"name": "Pará",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [420, 900],
|
||||
"name": "Peru",
|
||||
"strength": 1,
|
||||
"flag": "pe"
|
||||
},
|
||||
{
|
||||
"coordinates": [820, 1180],
|
||||
"name": "Paraguay",
|
||||
"strength": 1,
|
||||
"flag": "py"
|
||||
},
|
||||
{
|
||||
"coordinates": [1150, 1185],
|
||||
"name": "Rio de Janeiro",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [565, 1660],
|
||||
"name": "Santa Cruz",
|
||||
"strength": 1,
|
||||
"flag": "ar"
|
||||
},
|
||||
{
|
||||
"coordinates": [980, 1170],
|
||||
"name": "São Paulo",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [890, 610],
|
||||
"name": "Suriname",
|
||||
"strength": 1,
|
||||
"flag": "sr"
|
||||
},
|
||||
{
|
||||
"coordinates": [890, 1375],
|
||||
"name": "Uruguay",
|
||||
"strength": 1,
|
||||
"flag": "uy"
|
||||
},
|
||||
{
|
||||
"coordinates": [640, 570],
|
||||
"name": "Venezuela",
|
||||
"strength": 1,
|
||||
"flag": "ve"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 456 KiB |
File diff suppressed because one or more lines are too long
@@ -14,6 +14,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
Africa: "Africa",
|
||||
Asia: "Asia",
|
||||
Mars: "Mars",
|
||||
SouthAmerica: "South America",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -137,7 +137,6 @@ export class EventsDisplay extends LitElement implements Layer {
|
||||
this.outgoingBoats = myPlayer
|
||||
.units()
|
||||
.filter((u) => u.type() === UnitType.TransportShip);
|
||||
console.log("loan", this.outgoingBoats);
|
||||
|
||||
this.requestUpdate();
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import oceania from "../../../resources/maps/Oceania.png";
|
||||
import europe from "../../../resources/maps/Europe.png";
|
||||
import mena from "../../../resources/maps/Mena.png";
|
||||
import northAmerica from "../../../resources/maps/NorthAmerica.png";
|
||||
import southAmerica from "../../../resources/maps/SouthAmerica.png";
|
||||
import blackSea from "../../../resources/maps/BlackSea.png";
|
||||
import africa from "../../../resources/maps/Africa.png";
|
||||
import asia from "../../../resources/maps/Asia.png";
|
||||
@@ -22,6 +23,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return mena;
|
||||
case GameMapType.NorthAmerica:
|
||||
return northAmerica;
|
||||
case GameMapType.SouthAmerica:
|
||||
return southAmerica;
|
||||
case GameMapType.BlackSea:
|
||||
return blackSea;
|
||||
case GameMapType.Africa:
|
||||
|
||||
@@ -43,6 +43,7 @@ export enum GameMapType {
|
||||
Europe = "Europe",
|
||||
Mena = "Mena",
|
||||
NorthAmerica = "North America",
|
||||
SouthAmerica = "South America",
|
||||
Oceania = "Oceania",
|
||||
BlackSea = "Black Sea",
|
||||
Africa = "Africa",
|
||||
|
||||
@@ -33,6 +33,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
|
||||
[GameMapType.Africa]: "Africa",
|
||||
[GameMapType.Asia]: "Asia",
|
||||
[GameMapType.Mars]: "Mars",
|
||||
[GameMapType.SouthAmerica]: "SouthAmerica",
|
||||
};
|
||||
|
||||
class GameMapLoader {
|
||||
|
||||
@@ -17,6 +17,7 @@ const maps = [
|
||||
"Mena",
|
||||
"Oceania",
|
||||
"NorthAmerica",
|
||||
"SouthAmerica",
|
||||
];
|
||||
const min_island_size = 30;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user