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:
parent
19a9da4aee
commit
436083f606
2 changed files with 92 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue