From 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 09:02:04 +1000 Subject: Menus, game over, dying, etc. --- asset.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'asset.c') diff --git a/asset.c b/asset.c index 5ae5419..5db8a20 100644 --- a/asset.c +++ b/asset.c @@ -16,6 +16,8 @@ static struct { FILE* pack; int pack_count; + BM_Font default_font; + unsigned char memory[asset_memory]; int memory_ptr; @@ -113,8 +115,20 @@ void load_assets() { #undef gi fclose(pack); + + init_font( + &asset_manager.default_font, + get_bitmap(asset_id_usr), + 10, + 10, + 16 + ); } const Bitmap* get_bitmap(Asset_ID id) { return &asset_manager.bitmaps[id]; } + +const BM_Font* get_default_font() { + return &asset_manager.default_font; +} -- cgit v1.2.3-54-g00ecf