various: implement fog of war; make enemy AI slightly more intelligent
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I3e22dbc5e10690871255980c52a24c226a6a6964
This commit is contained in:
parent
4dfe52ae72
commit
f85d28e932
8 changed files with 151 additions and 21 deletions
|
|
@ -80,10 +80,10 @@ void render_map(const Map *map);
|
|||
void render_player(const Player *p);
|
||||
|
||||
// Render all enemies
|
||||
void render_enemies(const Enemy *enemies, int count);
|
||||
void render_enemies(const Enemy *enemies, int count, const unsigned char visible[MAP_HEIGHT][MAP_WIDTH]);
|
||||
|
||||
// Render all items
|
||||
void render_items(const Item *items, int count);
|
||||
void render_items(const Item *items, int count, const unsigned char visible[MAP_HEIGHT][MAP_WIDTH]);
|
||||
|
||||
// Render UI overlay
|
||||
void render_ui(const Player *p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue