render: replace game over screen with end screen; show stats breakdown

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
This commit is contained in:
raf 2026-04-08 10:26:52 +03:00
commit 436083f606
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 92 additions and 11 deletions

View file

@ -27,8 +27,9 @@ 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 game over screen
void render_game_over(void);
// 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);