render: implement experimental font change, needs work
This commit is contained in:
parent
09f7e659b5
commit
2fdebb8f41
5 changed files with 21 additions and 14 deletions
|
|
@ -511,7 +511,11 @@ void load_audio_assets(GameState *gs) {
|
|||
static void game_loop(void) {
|
||||
GameState gs;
|
||||
memset(&gs, 0, sizeof(GameState));
|
||||
// load external assets
|
||||
// sound
|
||||
load_audio_assets(&gs);
|
||||
// font
|
||||
Font fontTTF = LoadFontEx("./assets/fonts/Royal_Decree_Bold.ttf", 14, 0, 250);
|
||||
// Initialize first floor
|
||||
rng_seed(12345);
|
||||
init_floor(&gs, 1);
|
||||
|
|
@ -564,7 +568,7 @@ static void game_loop(void) {
|
|||
|
||||
// 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue