DungeonCrawl
|
Exposes functions for drawing light on player. More...
#include "../map.h"
Go to the source code of this file.
Functions | |
void | draw_light_on_player (map_tile_t *arr1, map_tile_t *arr2, int height, int width, vector2d_t player, int light_radius) |
Draws light around the player. |
Exposes functions for drawing light on player.
Definition in file draw_light.h.
void draw_light_on_player | ( | map_tile_t * | arr1, |
map_tile_t * | arr2, | ||
int | height, | ||
int | width, | ||
vector2d_t | player, | ||
int | light_radius ) |
Draws light around the player.
arr1 | The pointer to the 2D array containing all the map tiles (no Hidden tiles) |
arr2 | The pointer to the 2D array to reveal the arr1, based on the player's position and light radius |
height | The height of the map |
width | The width of the map |
player | The player's position on the map |
light_radius | The radius of the light around the player |
Definition at line 156 of file draw_light.c.