anedumgottil / VR-Mazmorra

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

MapLoader needs to pull in Tile prefabs and automatically index them #23

Closed apodgo2 closed 6 years ago

apodgo2 commented 6 years ago

This is necessary so we can get the prefabs from Shanil working in the game.

it needs to generate a List of Tile's that we can use similarly to getBlockInstance() but with Tiles instead, which will be a drop-in replacement for the current Block generation we have for the map as of 227c926.

apodgo2 commented 6 years ago

As of e1269da5298e6a556c8205accc23e7ca868b3fd3

We've done most of the footwork on this, and it's pretty much ready to go. It has the SciFiTiles ready to load in (hardcoded path) for the Second Demo, and it worked admirably with the new Resources folder at runtime/player.

All that needs doing is to apply the algorithm to the other folders of Tiles, maybe add a few more for some aesthetic touches, get the half-sized tiles in, and the object pooling and MapLoader will be pretty much complete.

Beware that the numbering system has changed for Tiles since they require a left-zero-pad to be loaded in correctly in such a way that they preserve Tile indices.