add compact map option (#2095)

## Description:

Create mini map option
<img width="741" height="234" alt="Screenshot 2025-09-25 at 4 47 47 PM"
src="https://github.com/user-attachments/assets/6c442698-8e3b-44d5-b07e-c4f0a916c3bc"
/>

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

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

evan
This commit is contained in:
evanpelle
2025-09-25 16:51:25 -07:00
committed by GitHub
parent 110a255265
commit 5d9b62da4d
127 changed files with 1099 additions and 512 deletions
+4 -5
View File
@@ -3,6 +3,7 @@ import path from "path";
import {
Difficulty,
Game,
GameMapSize,
GameMapType,
GameMode,
GameType,
@@ -35,7 +36,7 @@ export async function setup(
);
const miniMapBinPath = path.join(
currentDir,
`../testdata/maps/${mapName}/mini_map.bin`,
`../testdata/maps/${mapName}/map4x.bin`,
);
const manifestPath = path.join(
currentDir,
@@ -49,15 +50,13 @@ export async function setup(
) satisfies MapManifest;
const gameMap = await genTerrainFromBin(manifest.map, mapBinBuffer);
const miniGameMap = await genTerrainFromBin(
manifest.mini_map,
miniMapBinBuffer,
);
const miniGameMap = await genTerrainFromBin(manifest.map4x, miniMapBinBuffer);
// Configure the game
const serverConfig = new TestServerConfig();
const gameConfig: GameConfig = {
gameMap: GameMapType.Asia,
gameMapSize: GameMapSize.Normal,
gameMode: GameMode.FFA,
gameType: GameType.Singleplayer,
difficulty: Difficulty.Medium,