Add Japan as map (#384)

## Description:
There are fewer bots on the mainland, so taking control there can make
you more powerful.
To balance that, no rivers have been placed there, meaning you won’t
gain trade advantages from them.
The battlefield is split into two fronts, allowing for exciting
amphibious assaults with nuclear warfare.

I'm not sure about the white line on the map, but I don't think it's a
problem.

<img width="382" alt="スクリーンショット 2025-03-31 21 21 26"
src="https://github.com/user-attachments/assets/e1428ad8-febc-4eee-9c73-f27dd6fc207a"
/>
<img width="541" alt="スクリーンショット 2025-03-31 21 22 01"
src="https://github.com/user-attachments/assets/e2e63664-dde6-4d0b-a9d3-4f759d8924c6"
/>
<img width="441" alt="スクリーンショット 2025-03-31 21 22 15"
src="https://github.com/user-attachments/assets/eb386896-ed02-463b-ba2e-1b991dba8acb"
/>

![スクリーンショット 2025-03-31 21 23
20](https://github.com/user-attachments/assets/aa7685a6-74d7-4d89-9595-fe1731b43162)


## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

<DISCORD USERNAME>
aotumuri
This commit is contained in:
Aotumuri
2025-04-01 01:55:04 +09:00
committed by GitHub
parent f12d14fd22
commit 8d6a0bce2c
11 changed files with 138 additions and 1 deletions
+2 -1
View File
@@ -110,7 +110,8 @@
"australia": "Australia",
"random": "Random",
"iceland": "Iceland",
"pangaea": "Pangaea"
"pangaea": "Pangaea",
"japan": "Japan and Neighbors"
},
"private_lobby": {
"title": "Join Private Lobby",
+1
View File
@@ -108,6 +108,7 @@
"gatewaytotheatlantic": "西ヨーロッパ",
"australia": "オーストラリア",
"iceland": "アイスランド",
"japan": "日本とその近隣",
"random": "ランダム"
},
"private_lobby": {
File diff suppressed because one or more lines are too long
+127
View File
@@ -0,0 +1,127 @@
{
"name": "Japan",
"width": 2000,
"height": 2000,
"nations": [
{
"coordinates": [1340, 468],
"name": "Hokkaido",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1220, 830],
"name": "Tohoku",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1000, 1150],
"name": "Chubu",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1150, 1170],
"name": "Kanto",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [860, 1260],
"name": "Kinki",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [670, 1250],
"name": "Chugoku",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [700, 1350],
"name": "Shikoku",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [510, 1440],
"name": "Kyushu",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [300, 1150],
"name": "South Korea",
"strength": 2,
"flag": "kr"
},
{
"coordinates": [220, 880],
"name": "North Korea",
"strength": 2,
"flag": "kp"
},
{
"coordinates": [50, 50],
"name": "China",
"strength": 2,
"flag": "cn"
},
{
"coordinates": [900, 200],
"name": "Russia",
"strength": 2,
"flag": "ru"
},
{
"coordinates": [1030, 970],
"name": "Sado Island",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [670, 1130],
"name": "Oki Islands",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [300, 1930],
"name": "Okinawa",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1190, 680],
"name": "Tsugaru Strait",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1130, 1190],
"name": "Tokyo",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1060, 1190],
"name": "Mount Fuji",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1500, 420],
"name": "Shiretoko Peninsula",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [490, 1530],
"name": "Sakurajima",
"strength": 3,
"flag": "jp"
}
]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 386 KiB

File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

+1
View File
@@ -20,6 +20,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
GatewayToTheAtlantic: "Gateway to the Atlantic",
Australia: "Australia",
Iceland: "Iceland",
Japan: "Japan",
};
@customElement("map-display")
+3
View File
@@ -13,6 +13,7 @@ import britannia from "../../../resources/maps/BritanniaThumb.webp";
import gatewayToTheAtlantic from "../../../resources/maps/GatewayToTheAtlanticThumb.webp";
import australia from "../../../resources/maps/AustraliaThumb.webp";
import iceland from "../../../resources/maps/IcelandThumb.webp";
import japan from "../../../resources/maps/JapanThumb.webp";
import { GameMapType } from "../../core/game/Game";
@@ -48,6 +49,8 @@ export function getMapsImage(map: GameMapType): string {
return australia;
case GameMapType.Iceland:
return iceland;
case GameMapType.Japan:
return japan;
default:
return "";
}
+1
View File
@@ -60,6 +60,7 @@ export enum GameMapType {
GatewayToTheAtlantic = "Gateway to the Atlantic",
Australia = "Australia",
Iceland = "Iceland",
Japan = "Japan",
}
export enum GameType {
+1
View File
@@ -39,6 +39,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
[GameMapType.GatewayToTheAtlantic]: "GatewayToTheAtlantic",
[GameMapType.Australia]: "Australia",
[GameMapType.Iceland]: "Iceland",
[GameMapType.Japan]: "Japan",
};
class GameMapLoader {