14#define MINIMAP_SIZE 100
17#define MINIMAP_CHUNK_SIZE 10
20#define MINIMAP_CHUNK_ROOM_SIZE 6
23#define MINIMAP_CHUNK_HALLWAY_SIZE 2
26#define MINIMAP_MARGIN ((MINIMAP_SIZE - (MINIMAP_CHUNK_SIZE * MAP_SIZE_CHUNK)))
29#define MINIMAP_ROOM_COLOR 255, 255, 255, 255
32#define MINIMAP_ENEMY_ROOM_COLOR 255, 0, 0, 255
35#define MINIMAP_SPECIAL_ROOM_COLOR 252, 130, 0, 255
38#define MINIMAP_START_ROOM_COLOR 0, 255, 0, 255
41#define MINIMAP_END_ROOM_COLOR 0, 0, 255, 255
44#define MINIMAP_PLAYER_COLOR 158, 158, 158, 255
RoomHallways
Possible hallways directions in a room.
Definition chunks.h:72
Manages game world maps composed of environment chunks.
void Minimap_RenderChunkHallways(EnvironmentChunk *chunk)
Render hallways for a chunk on the minimap.
Definition minimap.c:121
void Minimap_RenderChunkRoom(EnvironmentChunk *chunk)
Render a room within a chunk on the minimap.
Definition minimap.c:74
void Minimap_Render()
Render the complete minimap to the screen.
Definition minimap.c:41
void Minimap_RenderChunk(EnvironmentChunk *chunk)
Render a specific chunk on the minimap.
Definition minimap.c:61
void Minimap_Start()
Initialize the minimap system.
Definition minimap.c:25
Vec2 Minimap_GetMinimapChunkPosition(EnvironmentChunk *chunk)
Calculate the position of a chunk on the minimap.
Definition minimap.c:216
SDL_Color Minimap_GetRoomColor(EnvironmentChunk *chunk)
Determine the appropriate color for a room based on its type.
Definition minimap.c:190
SDL_Rect minimapPosition
Position and size of the minimap on screen.
Definition minimap.c:16
bool Minimap_ChunkIsVisible(EnvironmentChunk *chunk)
Check if a chunk should be visible on the minimap.
Definition minimap.c:275
RoomHallways Minimap_GetHallways(EnvironmentChunk *chunk)
Get the hallways connected to a specific chunk.
Definition minimap.c:237
Represents a chunk of the environment.
Definition chunks.h:105
A 2D vector structure.
Definition vec2.h:81