Feat/new game dynamic map list#144
Open
flyingmongoose wants to merge 1 commit intounknown-horizons:developfrom
Open
Feat/new game dynamic map list#144flyingmongoose wants to merge 1 commit intounknown-horizons:developfrom
flyingmongoose wants to merge 1 commit intounknown-horizons:developfrom
Conversation
2f3588c to
fc59664
Compare
Member
|
@pingwindev could you please review it? |
Replace the hardcoded map list with manifest-first discovery that works in exports, include automatic bundled World*.tscn discovery with dedupe, add optional user map ingestion from user://maps, and support root-node MapName metadata so map creators can control display labels without changing scene paths.
fc59664 to
dc2ab36
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented dynamic map list on the New Game UI.
I have created a wiki page on my own fork to provide details: 🗺️ Community Maps
But here's the short version
I have also included an interpretation of a Metadata string on the root node of a map.
If the map manifest file does not include the map, or map name, it will load from a metadata string called
MapName.This must be on the root node of the scene for the map.
Maps Manifest File (maps_manifest.json) Format:
{ "maps": [ { "name": "WorldDev2D", "path": "res://Assets/World/WorldDev2D.tscn" }, { "name": "WorldDev2D_perf", "path": "res://Assets/World/WorldDev2D_perf.tscn" }, { "name": "WorldDev2D_simple", "path": "res://Assets/World/WorldDev2D_simple.tscn" } ] }