font: squash commit into main

Squashed commit of the following:

commit a53942249c82ae8c17bd2f89271430b16a0f9412
Author: A.M. Rowsell <amr@frzn.dev>
Date:   Thu Apr 9 23:59:13 2026 -0400

    font: extensive tweaks, looks much better

commit 64205e137c8e390f309b59c06f97cbdfd722adb0
Author: A.M. Rowsell <amr@frzn.dev>
Date:   Thu Apr 9 12:13:00 2026 -0400

    font: fully implemented font changes to UI, size/spacing need tweaking

commit 901f063696b37700065cc094f7bc22b040f6f682
Author: A.M. Rowsell <amr@frzn.dev>
Date:   Wed Apr 8 09:36:03 2026 -0400

    font: tweak sizes of stats

commit 20f8c71fdf49a2da357081889c46d011e08d0726
Author: A.M. Rowsell <amr@frzn.dev>
Date:   Wed Apr 8 09:28:22 2026 -0400

    render: implement experimental font change, needs work
This commit is contained in:
A.M. Rowsell 2026-04-10 08:12:53 -04:00 committed by raf
commit 2500fffe84
7 changed files with 108 additions and 75 deletions

View file

@ -522,8 +522,15 @@ void load_audio_assets(GameState *gs) {
static void game_loop(unsigned int run_seed) {
GameState gs;
memset(&gs, 0, sizeof(GameState));
<<<<<<< HEAD
gs.run_seed = run_seed;
=======
// load external assets
// sound
>>>>>>> acdbc9c (font: squash commit into main)
load_audio_assets(&gs);
// font
Font fontTTF = LoadFontEx("./assets/fonts/Tomorrow_Night.ttf", 24, NULL, 0);
// Initialize first floor
init_floor(&gs, 1);
@ -581,19 +588,19 @@ static void game_loop(unsigned int run_seed) {
// Floating texts follow world shake
render_floating_texts(gs.floating_texts, gs.floating_count, gs.shake_x, gs.shake_y);
render_ui(&gs.player);
render_ui(&gs.player, &fontTTF);
// Draw action log
render_action_log(gs.action_log, gs.log_count, gs.log_head);
render_action_log(gs.action_log, gs.log_count, gs.log_head, &fontTTF);
// Draw inventory overlay if active
if (gs.show_inventory) {
render_inventory_overlay(&gs.player, gs.inv_selected);
render_inventory_overlay(&gs.player, gs.inv_selected, &fontTTF);
}
// Draw message if any
if (gs.last_message != NULL && gs.message_timer > 0) {
render_message(gs.last_message);
render_message(gs.last_message, &fontTTF);
}
// Draw persistent seed display in top right
@ -609,7 +616,7 @@ static void game_loop(unsigned int run_seed) {
}
render_end_screen(gs.game_won, gs.total_kills, gs.items_collected, gs.damage_dealt, gs.damage_taken,
gs.crits_landed, gs.times_hit, gs.potions_used, gs.floors_reached, gs.turn_count,
gs.final_score, gs.run_seed);
gs.final_score, gs.run_seed, &fontTTF);
}
EndDrawing();