The game over logic is now consolidated as there are two possible scenarios: victory or death. The end-screen rendering has thus been consolidated to display victory (gold YOU ESCAPED) or death (red GAME OVER) with a stats box. Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iecf71ecde4097a41bd074f9123c8c4c76a6a6964
37 lines
1 KiB
C
37 lines
1 KiB
C
#ifndef RENDER_H
|
|
#define RENDER_H
|
|
|
|
#include "common.h"
|
|
|
|
// Render the map tiles
|
|
void render_map(const Map *map);
|
|
|
|
// Render the player
|
|
void render_player(const Player *p);
|
|
|
|
// Render all enemies
|
|
void render_enemies(const Enemy *enemies, int count);
|
|
|
|
// Render all items
|
|
void render_items(const Item *items, int count);
|
|
|
|
// Render UI overlay
|
|
void render_ui(const Player *p);
|
|
|
|
// Render action log (bottom left corner)
|
|
void render_action_log(const char log[5][128], int count, int head);
|
|
|
|
// Render inventory selection overlay
|
|
void render_inventory_overlay(const Player *p, int selected);
|
|
|
|
// Render floating damage text
|
|
void render_floating_texts(FloatingText *texts, int count, int shake_x, int shake_y);
|
|
|
|
// Render end screen (victory or death) with stats breakdown
|
|
void render_end_screen(int is_victory, int kills, int items, int damage_dealt, int damage_taken, int crits,
|
|
int times_hit, int potions, int floors, int turns, int score);
|
|
|
|
// Render a message popup
|
|
void render_message(const char *message);
|
|
|
|
#endif // RENDER_H
|