diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -6,22 +6,26 @@ | |||
6 | #include "sprites.h" | 6 | #include "sprites.h" |
7 | #include "text.h" | 7 | #include "text.h" |
8 | #include "sequencer.c" | 8 | #include "sequencer.c" |
9 | #include "bd-font.c" | 9 | #include "small-font.c" |
10 | 10 | ||
11 | // | 11 | // |
12 | // Main functions. | 12 | // Main functions. |
13 | // | 13 | // |
14 | 14 | ||
15 | // TODO: Cleanup OBJ/OAM memory copying and access. | ||
16 | // | ||
17 | |||
18 | int main(void) { | 15 | int main(void) { |
19 | // Configure the display in mode 0 to show OBJs, where tile memory is | 16 | // Configure the display in mode 0 to show OBJs, where tile memory is |
20 | // sequential. | 17 | // sequential. |
21 | DISP_CTRL = DISP_ENABLE_SPRITES | DISP_MODE_3 | DISP_BG_2; | 18 | DISP_CTRL = DISP_ENABLE_SPRITES | DISP_MODE_3 | DISP_BG_2; |
22 | 19 | ||
23 | // Initialize text engine. | 20 | // Initialize text engine. |
24 | txt_init_bitmap(TXT_MODE_MODE3, (Font){.data = bd_font, .char_width = 6}); | 21 | txt_init_bitmap( |
22 | TXT_MODE_MODE3, | ||
23 | (Font){ | ||
24 | .data = small_font, | ||
25 | .char_width = 4, | ||
26 | .char_height = 8, | ||
27 | .char_map = small_font_map, | ||
28 | }); | ||
25 | 29 | ||
26 | // Register interrupts. | 30 | // Register interrupts. |
27 | irq_init(); | 31 | irq_init(); |