Mirai's Miscellaneous Misadventures
M51 / include / mimimi-chapters.h
1
2
3
4#ifndef MIMIMI_CHAPTERS_H
5#define MIMIMI_CHAPTERS_H
6
7#include <mimimi.h>
8
9struct mimimi_test
10{
11 struct mimimi_engine *engine;
12 struct mimimi_history history;
13 struct mimimi_stage stage;
14};
15
16void mimimi_test_tick(void *chapter, unsigned char left, unsigned char right);
17void *mimimi_test(struct mimimi_engine *engine);
18
19struct mimimi_chapter_I
20{
21 struct mimimi_engine *engine;
22 struct mimimi_history history;
23 int progression;
24 int progression_counter;
25 struct mimimi_toast_dialogue dialogue0, dialogue1;
26 struct mimimi_toast_dialogue tutorial, dialogue;
27 struct mimimi_stage stage;
28 void *background;
29};
30
31void mimimi_chapter_I_tick(void *chapter, unsigned char left, unsigned char right);
32void *mimimi_chapter_I(struct mimimi_engine *engine);
33
34struct mimimi_loader
35{
36 struct mimimi_engine *engine;
37 int previous_direction;
38 int x;
39 unsigned char colors[0x100000];
40 struct mimimi_image images[0x10];
41 void *textures[0x10];
42 void *background;
43 struct mimimi_image background_image;
44 int index;
45 unsigned char started;
46 void *chapter;
47};
48
49void mimimi_loader_tick(void *chapter, unsigned char left, unsigned char right);
50void *mimimi_loader(struct mimimi_engine *engine);
51
52#endif