aboutsummaryrefslogtreecommitdiff
path: root/asset.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 09:02:04 +1000
committerquou <quou@disroot.org>2023-05-06 09:02:04 +1000
commit2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch)
treee608ebd0bea71570be0a3619f9848f975669e5ef /asset.c
parentfb104368dd33b66e0575dcc0327cbae7046a4e1e (diff)
Menus, game over, dying, etc.
Diffstat (limited to 'asset.c')
-rw-r--r--asset.c14
1 files changed, 14 insertions, 0 deletions
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;
+}