DungeonCrawl
|
Exposes functions for outputing to the screen while in the map mode. More...
Go to the source code of this file.
Functions | |
void | draw_map_mode (const map_tile_t *arr, int height, int width, vector2d_t anchor, vector2d_t player_pos) |
Draws the map mode UI based on the given parameters. | |
void | draw_player_info (int x, int y, vector2d_t player_pos) |
Draws the player information for the map mode. |
Exposes functions for outputing to the screen while in the map mode.
Definition in file map_output.h.
void draw_map_mode | ( | const map_tile_t * | arr, |
int | height, | ||
int | width, | ||
vector2d_t | anchor, | ||
vector2d_t | player_pos ) |
Draws the map mode UI based on the given parameters.
arr | The map array to be drawn |
height | The height of the map |
width | The width of the map |
anchor | The anchor position of the map mode, defined as the top left corner |
player_pos | The position of the player |
Definition at line 14 of file map_output.c.
void draw_player_info | ( | int | x, |
int | y, | ||
vector2d_t | player_pos ) |
Draws the player information for the map mode.
This function renders player-related information such as health, position, and available commands.
x | The x position of the player info to be drawn |
y | The y position of the player info to be drawn |
player_pos | The current player position |
Definition at line 97 of file map_output.c.