|
@@ -60,11 +60,13 @@ void set_pixel(u8 x, u8 y, u16 *start, u16 pixel) {
|
60
|
60
|
if (x % 2 == 0)
|
61
|
61
|
*addr = (*addr & 0xFF00) | (pixel);
|
62
|
62
|
else
|
63
|
|
- *addr = (*addr & 0x00FF) | (pixel << 8);
|
|
63
|
+ *addr = (*((u8*)addr)) | (pixel << 8);
|
64
|
64
|
}
|
65
|
65
|
|
|
66
|
+#define ANIMATION_FRAME_SPEED 2
|
|
67
|
+
|
66
|
68
|
void text_animator(u16 current_frame) {
|
67
|
|
- if ((current_frame % 7) == 0) {
|
|
69
|
+ if ((current_frame % ANIMATION_FRAME_SPEED) == 0) {
|
68
|
70
|
u8 outer_pixels[16] = {
|
69
|
71
|
*(CANVAS_FIRST + 0), *(CANVAS_FIRST + 4), *(CANVAS_FIRST + 8), *(CANVAS_FIRST + 12),
|
70
|
72
|
*(CANVAS_FIRST + 16), *(CANVAS_FIRST + 20), *(CANVAS_FIRST + 24), *(CANVAS_FIRST + 28),
|
|
@@ -89,6 +91,7 @@ void anim_init_text(void) {
|
89
|
91
|
blockset_one_current_tile = 0;
|
90
|
92
|
blockset_one_max_tile = 0x280;
|
91
|
93
|
blockset_one_animator = text_animator;
|
|
94
|
+ dprintf("%d\n", var_8000);
|
92
|
95
|
if(var_8000 != 0)
|
93
|
96
|
draw_text_on_canvas(map_texts[var_8000]);
|
94
|
97
|
}
|