Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added map-generator/assets/maps/thebox/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions map-generator/assets/maps/thebox/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "TheBox",
"nations": [
{"coordinates": [10, 10], "flag": "", "name": "King of the Corner"},
{"coordinates": [1024, 300], "flag": "", "name": "Suspicious Ally"},
{"coordinates": [1650, 400], "flag": "", "name": "Evan The Dev"},
{"coordinates": [1024, 1024], "flag": "", "name": "Middle Defender"},
{"coordinates": [350, 1024], "flag": "", "name": "Punch Merchant"},
{"coordinates": [1700, 1024], "flag": "", "name": "Nuke Thrower"},
{"coordinates": [400, 1650], "flag": "", "name": "Fullsender"},
{"coordinates": [1024, 1750], "flag": "", "name": "Factory Builder"},
{"coordinates": [1650, 1650], "flag": "", "name": "Front Manager"},
{"coordinates": [700, 700], "flag": "", "name": "Box Fighter"},
{"coordinates": [1350, 700], "flag": "", "name": "Cage Liberator"},
{"coordinates": [700, 1350], "flag": "", "name": "Train Trader"},
{"coordinates": [1350, 1350], "flag": "", "name": "Non-peaceful Bot"}
]
}
1 change: 1 addition & 0 deletions map-generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ var maps = []struct {
{Name: "world"},
{Name: "lemnos"},
{Name: "twolakes"},
{Name: "thebox"},
{Name: "didier"},
{Name: "didierfrance"},
{Name: "amazonriver"},
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@
"manicouagan": "Manicouagan",
"lemnos": "Lemnos",
"sierpinski": "Sierpinski",
"thebox": "The Box",
"twolakes": "Two Lakes",
"straitofhormuz": "Strait of Hormuz",
"surrounded": "Surrounded",
Expand Down
1 change: 1 addition & 0 deletions resources/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"falklandislands": "Islas Malvinas",
"baikal": "Lago Baikal",
"halkidiki": "Halkidiki"
"thebox": "La Caja"
},
"map_categories": {
"continental": "Continental",
Expand Down
124 changes: 124 additions & 0 deletions resources/maps/thebox/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"map": {
"height": 2048,
"num_land_tiles": 4194304,
"width": 2048
},
"map16x": {
"height": 512,
"num_land_tiles": 262144,
"width": 512
},
"map4x": {
"height": 1024,
"num_land_tiles": 1048576,
"width": 1024
},
"name": "TheBox",
"nations": [
{
"coordinates": [
10,
10
],
"flag": "",
"name": "King of the Corner"
},
{
"coordinates": [
1024,
300
],
"flag": "",
"name": "Suspicious Ally"
},
{
"coordinates": [
1650,
400
],
"flag": "",
"name": "Evan The Dev"
},
{
"coordinates": [
1024,
1024
],
"flag": "",
"name": "Middle Defender"
},
{
"coordinates": [
350,
1024
],
"flag": "",
"name": "Punch Merchant"
},
{
"coordinates": [
1700,
1024
],
"flag": "",
"name": "Nuke Thrower"
},
{
"coordinates": [
400,
1650
],
"flag": "",
"name": "Fullsender"
},
{
"coordinates": [
1024,
1750
],
"flag": "",
"name": "Factory Builder"
},
{
"coordinates": [
1650,
1650
],
"flag": "",
"name": "Front Manager"
},
{
"coordinates": [
700,
700
],
"flag": "",
"name": "Box Fighter"
},
{
"coordinates": [
1350,
700
],
"flag": "",
"name": "Cage Liberator"
},
{
"coordinates": [
700,
1350
],
"flag": "",
"name": "Train Trader"
},
{
"coordinates": [
1350,
1350
],
"flag": "",
"name": "Non-peaceful Bot"
}
]
}
1 change: 1 addition & 0 deletions resources/maps/thebox/map.bin

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/maps/thebox/map16x.bin

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/maps/thebox/map4x.bin

Large diffs are not rendered by default.

Binary file added resources/maps/thebox/thumbnail.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/core/game/Game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export enum GameMapType {
Manicouagan = "Manicouagan",
Lemnos = "Lemnos",
Sierpinski = "Sierpinski",
TheBox= "The Box",
TwoLakes = "Two Lakes",
StraitOfHormuz = "Strait of Hormuz",
Surrounded = "Surrounded",
Expand Down Expand Up @@ -177,6 +178,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
GameMapType.Surrounded,
],
arcade: [
GameMapType.TheBox,
GameMapType.Didier,
GameMapType.DidierFrance,
GameMapType.Sierpinski,
Expand Down
1 change: 1 addition & 0 deletions src/server/MapPlaylist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const frequency: Partial<Record<GameMapName, number>> = {
DidierFrance: 1,
AmazonRiver: 3,
Sierpinski: 10,
TheBox: 3,
};

interface MapWithMode {
Expand Down
Loading