-
Notifications
You must be signed in to change notification settings - Fork 1k
Added taiwan strait map #3853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Added taiwan strait map #3853
Changes from 6 commits
66104cc
e8c0d66
b2cd1b7
97e9407
b2f00ce
1fe45e5
f1e3650
e1b74b9
23d9126
65296f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| { | ||
| "name": "Taiwan Strait", | ||
| "nations": [ | ||
| { | ||
| "coordinates": [835, 35], | ||
| "name": "Fuzhou", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [777, 226], | ||
| "name": "Putian", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [686, 330], | ||
| "name": "Quanzhou", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [459, 116], | ||
| "name": "Chinese Military Base", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [540, 465], | ||
| "name": "Xiamen", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [435, 482], | ||
| "name": "Zhangzhou", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [279, 412], | ||
| "name": "Longyan", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [197, 743], | ||
| "name": "Shantou", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [112, 793], | ||
| "name": "Jieyang", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [125, 700], | ||
| "name": "Chaozhou", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [14, 215], | ||
| "name": "Giant Pandas", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [29, 503], | ||
| "name": "Meizhou", | ||
| "flag": "cn" | ||
| }, | ||
| { | ||
| "coordinates": [612, 478], | ||
| "name": "Kinmen Island", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [912, 718], | ||
| "name": "Penghu", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1134, 990], | ||
| "name": "Kaohsiung", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1085, 884], | ||
| "name": "Tainan", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1289, 931], | ||
| "name": "Taitung", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1378, 681], | ||
| "name": "Hualien", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1121, 768], | ||
| "name": "Chiayi", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1117, 618], | ||
| "name": "Taichung City", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1476, 320], | ||
| "name": "Keelung", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1388, 347], | ||
| "name": "Taipei", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1295, 350], | ||
| "name": "Taoyuan", | ||
| "flag": "tw" | ||
| }, | ||
| { | ||
| "coordinates": [1247, 415], | ||
| "name": "Hsinchu", | ||
| "flag": "tw" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| { | ||
| "map": { | ||
| "height": 1184, | ||
| "num_land_tiles": 748967, | ||
| "width": 1560 | ||
| }, | ||
| "map16x": { | ||
| "height": 296, | ||
| "num_land_tiles": 45756, | ||
| "width": 390 | ||
| }, | ||
| "map4x": { | ||
| "height": 592, | ||
| "num_land_tiles": 185553, | ||
| "width": 780 | ||
| }, | ||
| "name": "Taiwan Strait", | ||
| "nations": [ | ||
| { | ||
| "coordinates": [835, 35], | ||
| "flag": "cn", | ||
| "name": "Fuzhou" | ||
| }, | ||
| { | ||
| "coordinates": [777, 226], | ||
| "flag": "cn", | ||
| "name": "Putian" | ||
| }, | ||
| { | ||
| "coordinates": [686, 330], | ||
| "flag": "cn", | ||
| "name": "Quanzhou" | ||
| }, | ||
| { | ||
| "coordinates": [459, 116], | ||
| "flag": "cn", | ||
| "name": "Chinese Military Base" | ||
| }, | ||
| { | ||
| "coordinates": [540, 465], | ||
| "flag": "cn", | ||
| "name": "Xiamen" | ||
| }, | ||
| { | ||
| "coordinates": [435, 482], | ||
| "flag": "cn", | ||
| "name": "Zhangzhou" | ||
| }, | ||
| { | ||
| "coordinates": [279, 412], | ||
| "flag": "cn", | ||
| "name": "Longyan" | ||
| }, | ||
| { | ||
| "coordinates": [197, 743], | ||
| "flag": "cn", | ||
| "name": "Shantou" | ||
| }, | ||
| { | ||
| "coordinates": [112, 793], | ||
| "flag": "cn", | ||
| "name": "Jieyang" | ||
| }, | ||
| { | ||
| "coordinates": [125, 700], | ||
| "flag": "cn", | ||
| "name": "Chaozhou" | ||
| }, | ||
| { | ||
| "coordinates": [14, 215], | ||
| "flag": "cn", | ||
| "name": "Giant Pandas" | ||
| }, | ||
| { | ||
| "coordinates": [29, 503], | ||
| "flag": "cn", | ||
| "name": "Meizhou" | ||
| }, | ||
| { | ||
| "coordinates": [612, 478], | ||
| "flag": "tw", | ||
| "name": "Kinmen Island" | ||
| }, | ||
| { | ||
| "coordinates": [912, 718], | ||
| "flag": "tw", | ||
| "name": "Penghu" | ||
| }, | ||
| { | ||
| "coordinates": [1134, 990], | ||
| "flag": "tw", | ||
| "name": "Kaohsiung" | ||
| }, | ||
| { | ||
| "coordinates": [1085, 884], | ||
| "flag": "tw", | ||
| "name": "Tainan" | ||
| }, | ||
| { | ||
| "coordinates": [1289, 931], | ||
| "flag": "tw", | ||
| "name": "Taitung" | ||
| }, | ||
| { | ||
| "coordinates": [1378, 681], | ||
| "flag": "tw", | ||
| "name": "Hualien" | ||
| }, | ||
| { | ||
| "coordinates": [1121, 768], | ||
| "flag": "tw", | ||
| "name": "Chiayi" | ||
| }, | ||
| { | ||
| "coordinates": [1117, 618], | ||
| "flag": "tw", | ||
| "name": "Taichung City" | ||
| }, | ||
| { | ||
| "coordinates": [1476, 320], | ||
| "flag": "tw", | ||
| "name": "Keelung" | ||
| }, | ||
| { | ||
| "coordinates": [1388, 347], | ||
| "flag": "tw", | ||
| "name": "Taipei" | ||
| }, | ||
| { | ||
| "coordinates": [1295, 350], | ||
| "flag": "tw", | ||
| "name": "Taoyuan" | ||
| }, | ||
| { | ||
| "coordinates": [1247, 415], | ||
| "flag": "tw", | ||
| "name": "Hsinchu" | ||
| } | ||
| ] | ||
| } |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -170,6 +170,7 @@ export enum GameMapType { | |
| ArchipelagoSea = "ArchipelagoSea", | ||
| BajaCalifornia = "Baja California", | ||
| MiddleEast = "Middle East", | ||
| TaiwanStrait = "Taiwan Strait", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add tests for this Line 172 and Line 234 modify core map registry/category behavior, but there is no matching core test update in this PR context. Please add a test that asserts As per coding guidelines: “All changes to Also applies to: 234-234 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dismiss. New maps in src/core/Game.ts do not need Tests, as no other map is specifically written in Tests
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 563
✏️ Learnings added
🧠 Learnings used |
||
| } | ||
|
|
||
| export type GameMapName = keyof typeof GameMapType; | ||
|
|
@@ -232,6 +233,7 @@ export const mapCategories: Record<string, GameMapType[]> = { | |
| GameMapType.ArchipelagoSea, | ||
| GameMapType.BajaCalifornia, | ||
| GameMapType.MiddleEast, | ||
| GameMapType.TaiwanStrait, | ||
| ], | ||
| fantasy: [ | ||
| GameMapType.Pangaea, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add source/license attribution for this new map in
CREDITS.md.This PR adds a new map metadata file, but I don’t see the matching attribution update. Please add the map data-source/license entry in
CREDITS.md(e.g., OSM/OpenTopography attribution when applicable).Based on learnings: “For any new map metadata under
map-generator/assets/maps/*/info.json, ensure the repo’sCREDITS.mdis updated with correct license/source attribution for the map’s data sources.”🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i already credited OpenTopography
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Length of output: 210
🏁 Script executed:
Length of output: 4489
@crunchybbb2-hash, thanks for confirming! I checkedCREDITS.mdand the general OpenTopography section (covering Copernicus Global Digital Elevation Models) is already present and covers your map's elevation data. The existing credit is sufficient — no separate per-map entry is needed since the Taiwan Strait map uses the same shared source already attributed.If you didn't use OpenStreetMap for road/coastline tracing (unlike some other maps in the project), then no additional attribution is required. The PR looks good on the credits front! ✅
(ᴗ_ ᴗ。)
🧠 Learnings used