anedumgottil / VR-Mazmorra

Procedurally generated VR Dungeon
Apache License 2.0
1 stars 0 forks source link

Create MapGenerator and associated AI #18

Closed apodgo2 closed 7 years ago

apodgo2 commented 7 years ago

Reasoning:

we have MapLoader which handles the loading of pre-generated prefabs into the game and pools them

right now the MapLoader also defines the map layout. This is undesirable for a number of reasons:

  1. Map layout needs to be able to be automatically generated
  2. the gridobjects that are chosen to be spawned are context-dependent on what grids surround them
  3. map layout depends on flatfiles that are a pain in the anus to work with right now
  4. map generation needs to happen on the fly when the user uses the up-and-coming 2D gridview class
  5. maploader class is full of spaghetti and it hurts my eyes to read
  6. we need an authoritative source for static, immovable scenery generation

Implementation:

This will require a lot of work, and will take it's own custom AI to intelligently create map tiles based on context. We'll need to do a number of tasks:

And all of this needs to be done while keeping the positions of all of these game objects in sync along with all of their necessary classes updated about these changes as they are generated.

After all this we can tie the 2D Gridview into the MapGenerator so it will generate the map at runtime. Woo

apodgo2 commented 7 years ago

The last task for this issue really deserves it's own issue ticket, it involves creating a new file to track different configurations of GridSpaces instead of using the hardcoded ones I'm currently using, then creating a whole new map file which chooses the GridSpace Configurations and spawns them in sequentially, via a matrix... so I don't think we'll get that done by the milestone, and i'm just gonna close this ticket.

The entire MapGenerator AI and realtime generator is completed as of 227c926 anyways. Enjoy!