Skip to content

Commit 217a2c4

Browse files
authored
Adds Milky Way Map (#3519)
## Description: Adds Milky Way galaxy map based on real reconstruction by NASA. Star density simulated as terrain. Best played in Dark Mode. Also adds credits to JPL NASA <img width="532" height="533" alt="Captura de pantalla 2026-03-26 142938" src="https://github.com/user-attachments/assets/87bb19bb-4e2d-4383-a3e9-6e14b714b84c" /> ## 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: tri.star1011
1 parent 14a5128 commit 217a2c4

12 files changed

Lines changed: 99 additions & 1 deletion

File tree

CREDITS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ Licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
5959
[Arctic SDI](https://catalogue.arctic-sdi.org/geonetwork/srv/spa/catalog.search#/metadata/8b4f2b34-2d0d-4744-ae0f-d7989b9f7a02)
6060
Licensed under [CC0 1.0.](https://creativecommons.org/publicdomain/zero/1.0/legalcode.en)
6161

62+
### Milky Way Map
63+
64+
[NASA/JPL-Caltech](https://www.jpl.nasa.gov/images/pia10748-our-milky-way-gets-a-makeover-artist-concept/)
65+
[Public Domain](https://www.jpl.nasa.gov/jpl-image-use-policy/)
66+
6267
## Icons
6368

6469
### [The Noun Project](https://thenounproject.com/)
589 KB
Loading
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "milkyway",
3+
"nations": [
4+
{
5+
"coordinates": [775, 757],
6+
"name": "Sagittarius A*",
7+
"flag": ""
8+
},
9+
{
10+
"coordinates": [967, 247],
11+
"name": "Perseus Arm",
12+
"flag": ""
13+
},
14+
{
15+
"coordinates": [478, 1139],
16+
"name": "Centaurus Arm",
17+
"flag": ""
18+
},
19+
{
20+
"coordinates": [840, 1048],
21+
"name": "Empire of Mankind",
22+
"flag": "un"
23+
},
24+
{
25+
"coordinates": [1055, 1330],
26+
"name": "Aliens",
27+
"flag": ""
28+
},
29+
{
30+
"coordinates": [531, 164],
31+
"name": "The Void",
32+
"flag": "Cthulhu Republic"
33+
}
34+
]
35+
}

map-generator/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ var maps = []struct {
8383
{Name: "arctic"},
8484
{Name: "sanfrancisco"},
8585
{Name: "aegean"},
86+
{Name: "milkyway"},
8687
{Name: "big_plains", IsTest: true},
8788
{Name: "half_land_half_ocean", IsTest: true},
8889
{Name: "ocean_and_land", IsTest: true},

resources/lang/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@
350350
"niledelta": "Nile Delta",
351351
"arctic": "Arctic",
352352
"sanfrancisco": "San Francisco",
353-
"aegean": "Aegean"
353+
"aegean": "Aegean",
354+
"milkyway": "Milky Way"
354355
},
355356
"map_categories": {
356357
"featured": "Featured",
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"map": {
3+
"height": 1500,
4+
"num_land_tiles": 442979,
5+
"width": 1500
6+
},
7+
"map16x": {
8+
"height": 375,
9+
"num_land_tiles": 24807,
10+
"width": 375
11+
},
12+
"map4x": {
13+
"height": 750,
14+
"num_land_tiles": 106678,
15+
"width": 750
16+
},
17+
"name": "milkyway",
18+
"nations": [
19+
{
20+
"coordinates": [775, 757],
21+
"flag": "",
22+
"name": "Sagittarius A*"
23+
},
24+
{
25+
"coordinates": [967, 247],
26+
"flag": "",
27+
"name": "Perseus Arm"
28+
},
29+
{
30+
"coordinates": [478, 1139],
31+
"flag": "",
32+
"name": "Centaurus Arm"
33+
},
34+
{
35+
"coordinates": [840, 1048],
36+
"flag": "un",
37+
"name": "Empire of Mankind"
38+
},
39+
{
40+
"coordinates": [1055, 1330],
41+
"flag": "",
42+
"name": "Aliens"
43+
},
44+
{
45+
"coordinates": [531, 164],
46+
"flag": "Cthulhu Republic",
47+
"name": "The Void"
48+
}
49+
]
50+
}

resources/maps/milkyway/map.bin

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

resources/maps/milkyway/map16x.bin

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

resources/maps/milkyway/map4x.bin

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
10.2 KB
Loading

0 commit comments

Comments
 (0)