mirror of https://git.sr.ht/~kikoodx/momento
Custom font (WIP)
This commit is contained in:
parent
87d6abbb42
commit
03e007770d
|
@ -54,6 +54,7 @@ set(ASSETS
|
|||
assets/graphics/switch-activated-particle.png
|
||||
assets/graphics/exit-active-particle.png
|
||||
assets/graphics/exit-unlock-particle.png
|
||||
assets/graphics/font.png
|
||||
)
|
||||
|
||||
set(FLAGS
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
|
@ -22,3 +22,12 @@ exit-active-particle.png:
|
|||
exit-unlock-particle.png:
|
||||
type: bopti-image
|
||||
name: bimg_exit_unlock_particle
|
||||
|
||||
# Fonts
|
||||
font.png:
|
||||
type: font
|
||||
charset: print
|
||||
grid.width: 10
|
||||
grid.height: 13
|
||||
proportional: true
|
||||
name: font_main
|
||||
|
|
|
@ -38,6 +38,8 @@ extern int level_id;
|
|||
extern int fatal_error;
|
||||
extern char *fatal_error_msg;
|
||||
|
||||
extern const font_t font_main;
|
||||
|
||||
static int callback(volatile void *arg);
|
||||
|
||||
int main(void)
|
||||
|
@ -51,6 +53,9 @@ int main(void)
|
|||
|
||||
struct TitleScreen titlescreen = titlescreen_init();
|
||||
|
||||
/* set font */
|
||||
dfont(&font_main);
|
||||
|
||||
/* load level */
|
||||
level_id = 0;
|
||||
gint_switch(level_load);
|
||||
|
|
Loading…
Reference in New Issue