render: (relatively) minor UI overhaul #10

Merged
NotAShelf merged 8 commits from notashelf/push-lnksylnmlvzq into main 2026-04-08 12:39:10 +00:00
Showing only changes of commit e048e02475 - Show all commits

stats: add stat tracking fields to GameState

We can now track kills, items, damage dealt/taken, crits, times hit,
potions used, floors reached, and final score in `GameState` for
end-game display. This is rather basic for now, but I intend to extend
the tracked statistics as we introduce more mechanics. 

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I4dcd3e1effd0209268dc56fe4bba4b696a6a6964
raf 2026-04-08 09:50:45 +03:00
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -150,6 +150,16 @@ typedef struct {
int shake_x;
int shake_y;
AudioAssets sounds;
// Statistics
int total_kills;
int items_collected;
int damage_dealt;
int damage_taken;
int crits_landed;
int times_hit;
int potions_used;
int floors_reached;
int final_score;
} GameState;