- Home /
How to make a roguelike minimap (room based)?
I want to make a room based minimap like rogue legacy or enter the gungeon. I've aready knew that for a normal minimap you just have to create a second camera and pass the data to a render texture, then assign the render texture to a raw image. But i had no clue how to make a room based one. For basic, how to display a rectangle (room) or grid on the screen or ui. Do i need to make a render texture? What do i need to achieve something like this? I think i can easily know which room the player has already explored, the width and length of each room but how to display those?
no. you would't use a render from the camera. if you say you have block based levels then you should have some sort of data saved for the location of your walls. then you would use Texture2D.SetPixel() and line up the the positions of your blocks to the pixel coorditaes to create a texture. if you give a listing of your blocks then i can post code to make a texture from it.
I used unity tilemap system to build my level. I can easily get the position, width, height and other custom propeties of each room. Are that what you want? Can you talk a little more about your solution?
Your answer
Follow this Question
Related Questions
Draw minimap on panel 2 Answers
Minimap North Direction 1 Answer
How to make a minimap like in rogue legacy? 0 Answers
Detect if UI element is visible 0 Answers
New UI system too slow for a minimap 1 Answer