diff options
author | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
commit | 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch) | |
tree | e608ebd0bea71570be0a3619f9848f975669e5ef /asset.c | |
parent | fb104368dd33b66e0575dcc0327cbae7046a4e1e (diff) |
Menus, game over, dying, etc.
Diffstat (limited to 'asset.c')
-rw-r--r-- | asset.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; +} |