So, I’m creating a roguelike and I thought I’d make my levels out of 3x3 premade “mini levels”. Issue is, the game’s a 3D FPS. My idea was to take a 48x48 pixel texture, and use the colour of the pixel to determine what to place there. This works fine for placing enemies, decorations, etc, but one big issue I have is the walls. I’ve made a tool that makes a mesh out of the black pixels (I’ve marked black as “wall”) and this works fine, but this means each wall is one colour. What if I want the inside of a room to have a different colour? Or do some actual 3d wall decorations? It just seems a bit difficult. What options do I have?
I think this asset is perfect for this situation: Dungeon Maker.
Does this allow for making a level out of textures?
I think Leyton is meaning take something like this:
And create a 2D dungeon out of it, where black is wall, green is spawn, red is possible enemy, yellow is possible gold, etc. (for example)
Whereas the Dungeon Maker tool (I think) is more using small tiles to produce a complete dungeon.
Using Unity Tilemaps the simplest way is to make a set of color → tile associations, then process the source pixel map and create the right tiles.
I would recommend making the color → tile associations a ScriptableObject so you can create different mappings as your game design evolves and not be stuck with being backwardly-compatible back to you very first level zero.