Skip to content

Refactor: map generation changes#96

Merged
ktos merged 9 commits intomainfrom
kamil_z
May 21, 2025
Merged

Refactor: map generation changes#96
ktos merged 9 commits intomainfrom
kamil_z

Conversation

@kamilz12
Copy link
Copy Markdown
Collaborator

@kamilz12 kamilz12 commented May 20, 2025

done:
Implemented cron job for cyclic map generation
Removed enums for TerrainType and BiomeType
Added a walkable flag to biomes (true/false)
Created a service that keeps the current map in memory and prevents generating multiple map versions on refresh
Refactored location generation to use the map JSON file
Enabled generation of multiple location types (e.g., caves, towns for now)
Added submaps for locations identified by the generation algorithm (e.g., towns, caves)
Developed a service for importing maps from a file
Separated the logic of single map generation from world map generation
Created InMemoryMapRepository – a repository for storing maps in memory
Introduced new map types: lava and desert

@kamilz12 kamilz12 changed the title Refactor: generacja mapy Refactor: map generation changes May 20, 2025
kamilz12 added 9 commits May 21, 2025 22:33
… change for 24h), locations, prototype of generating new locations (towns, mainlocation), floodfill alghoritm for grouping a locations and generating an unique id for them example town1,town2 (if town is on two tiles it recognize as one town), files cleanup, main map is choosen only one randomly, mapdata -> map rename, importing many files from config files
…e to node and first logic for generating a submaps
…hen in 'locations' key in bimoe exist some location and it is not defined in submapassignmentlocations wont be rendered
@ktos ktos merged commit ab924e0 into main May 21, 2025
1 check passed
@ktos ktos deleted the kamil_z branch March 13, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants