-
Notifications
You must be signed in to change notification settings - Fork 0
/
FireballAnimation.cpp
130 lines (107 loc) · 4.78 KB
/
FireballAnimation.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#include "FireballAnimation.h"
#include <Gamebuino-Meta.h>
namespace animations {
const uint16_t fireball0[] PROGMEM = {
10, 10, 0, 2, 9, 6, 1,
0x0, 0x0, 0x0, 0x0, 0x60F4, 0x60F4, 0x60F4, 0x60F4, 0x0,
0xE6E3, 0x60F4, 0x2F6, 0x2F6, 0x2F6, 0x2F6, 0x2F6, 0x2F6, 0x60F4,
0x0, 0x0, 0x60F4, 0x2F6, 0x87FF, 0x87FF, 0x87FF, 0xFFFF, 0x2F6,
0x0, 0x0, 0x0, 0x60F4, 0x87FF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2F6,
0x0, 0x60F4, 0x60F4, 0x87FF, 0x87FF, 0x87FF, 0x87FF, 0x2F6, 0x60F4,
0x0, 0x0, 0x0, 0x60F4, 0x60F4, 0xE6E3, 0x60F4, 0x60F4, 0x0,
};
const uint16_t fireball1[] PROGMEM = {
10, 10, 0, 2, 9, 6, 1,
0x0, 0x0, 0x0, 0x0, 0xE6E3, 0xE6E3, 0xE6E3, 0x0, 0x0,
0x0, 0x0, 0x60F4, 0x60F4, 0x6BF6, 0x6BF6, 0x6BF6, 0x6BF6, 0xE6E3,
0xE6E3, 0x60F4, 0x6BF6, 0x6BF6, 0x87FF, 0x87FF, 0x87FF, 0xFFFF, 0x6BF6,
0x0, 0x0, 0x60F4, 0x87FF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x6BF6,
0xE6E3, 0x60F4, 0x60F4, 0x87FF, 0x87FF, 0x87FF, 0x87FF, 0x6BF6, 0xE6E3,
0x0, 0x0, 0x0, 0x60F4, 0xE6E3, 0xE6E3, 0xE6E3, 0xE6E3, 0x0,
};
const uint16_t fireball2[] PROGMEM = {
10, 10, 0, 2, 9, 6, 1,
0x0, 0x0, 0x0, 0x0, 0x60F4, 0x60F4, 0x60F4, 0x60F4, 0x0,
0x0, 0x0, 0x0, 0x60F4, 0x60F4, 0x60F4, 0x2F6, 0x2F6, 0x60F4,
0x0, 0xE6E3, 0x60F4, 0x60F4, 0x2F6, 0x87FF, 0x87FF, 0x87FF, 0x2F6,
0x0, 0x0, 0x0, 0x2F6, 0x87FF, 0xFFFF, 0xFFFF, 0x87FF, 0x2F6,
0x0, 0x0, 0x60F4, 0x2F6, 0x2F6, 0x87FF, 0x87FF, 0x2F6, 0x60F4,
0xE6E3, 0x60F4, 0x2F6, 0x60F4, 0x60F4, 0x60F4, 0xE6E3, 0xE6E3, 0x0,
};
const uint16_t fireball3[] PROGMEM = {
10, 10, 0, 2, 9, 6, 1,
0x0, 0x0, 0x0, 0x0, 0xE6E3, 0xE6E3, 0xE6E3, 0x0, 0x0,
0x0, 0xE6E3, 0x60F4, 0x60F4, 0x6BF6, 0x6BF6, 0x6BF6, 0x6BF6, 0x60F4,
0x0, 0x0, 0x60F4, 0x6BF6, 0x87FF, 0x87FF, 0x87FF, 0xFFFF, 0x6BF6,
0xE6E3, 0x60F4, 0x60F4, 0x87FF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x6BF6,
0x0, 0x0, 0xE6E3, 0x87FF, 0x87FF, 0x87FF, 0x87FF, 0x6BF6, 0x60F4,
0x0, 0xE6E3, 0xE6E3, 0x60F4, 0x60F4, 0xE6E3, 0xE6E3, 0xE6E3, 0x0,
};
const uint16_t* fireball_right_sprites[] PROGMEM = {
fireball0,
fireball1,
fireball2,
fireball3
};
// fireball up
const uint16_t fireballup0[] PROGMEM = {
10, 10, 1, 0, 8, 10, 1,
0x0, 0xE96D, 0xE96D, 0xBA7, 0xBA7, 0xE96D, 0xE96D, 0x0,
0xE96D, 0xBA7, 0xBA7, 0xFFFF, 0xFFFF, 0xBA7, 0xBA7, 0xE96D,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0xE96D,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xCED7, 0xCED7, 0xCED7, 0xE96D,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xCED7, 0xCED7, 0xCED7, 0xE96D,
0x0, 0xBA7, 0xBA7, 0xBA7, 0xE96D, 0xCED7, 0xCED7, 0xE96D,
0x0, 0xBA7, 0xBA7, 0xE96D, 0x0, 0xE96D, 0xE96D, 0x0,
0x0, 0xE96D, 0xE96D, 0x0, 0x0, 0x8944, 0x8944, 0x0,
0x0, 0x8944, 0x8944, 0x0, 0x0, 0x0, 0x0, 0x0,
};
const uint16_t fireballup1[] PROGMEM = {
10, 10, 1, 0, 8, 10, 1,
0x0, 0x8944, 0x8944, 0xBA7, 0xBA7, 0x8944, 0x8944, 0x0,
0x0, 0xBA7, 0xBA7, 0xFFFF, 0xFFFF, 0xBA7, 0xBA7, 0x8944,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0x0, 0xE96D, 0xE96D, 0xBA7, 0xCED7, 0xCED7, 0xCED7, 0xE96D,
0x0, 0xE96D, 0xE96D, 0xBA7, 0xE96D, 0xE96D, 0xE96D, 0x0,
0x0, 0x0, 0xE96D, 0xE96D, 0x0, 0xE96D, 0xE96D, 0x0,
0x0, 0x0, 0x8944, 0x8944, 0x0, 0x8944, 0x8944, 0x0,
};
const uint16_t fireballup2[] PROGMEM = {
10, 10, 1, 0, 8, 10, 1,
0x0, 0xE96D, 0xE96D, 0xBA7, 0xBA7, 0xE96D, 0xE96D, 0x0,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xCED7, 0xBA7, 0xBA7, 0x8944,
0xE96D, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0xE96D, 0xE96D, 0xE96D, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0xE96D,
0xE96D, 0xE96D, 0xE96D, 0xBA7, 0xCED7, 0xBA7, 0xBA7, 0xE96D,
0xE96D, 0xE96D, 0xE96D, 0xBA7, 0xCED7, 0xBA7, 0xBA7, 0xE96D,
0x0, 0xE96D, 0xE96D, 0xE96D, 0xBA7, 0xBA7, 0xBA7, 0xE96D,
0x0, 0x0, 0xE96D, 0xE96D, 0x0, 0xE96D, 0xE96D, 0xBA7,
0x0, 0x0, 0x8944, 0x8944, 0x0, 0x0, 0xE96D, 0xE96D,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8944, 0x8944,
};
const uint16_t fireballup3[] PROGMEM = {
10, 10, 1, 0, 8, 10, 1,
0x0, 0x8944, 0x8944, 0xBA7, 0xBA7, 0x8944, 0x8944, 0x0,
0x0, 0xBA7, 0xBA7, 0xFFFF, 0xFFFF, 0xBA7, 0xBA7, 0x8944,
0x8944, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0x8944, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0x8944,
0x8944, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0xE96D,
0x8944, 0xBA7, 0xBA7, 0xCED7, 0xFFFF, 0xCED7, 0xCED7, 0xE96D,
0x0, 0xE96D, 0xE96D, 0xBA7, 0xCED7, 0xCED7, 0xCED7, 0xE96D,
0x0, 0xE96D, 0xE96D, 0x0, 0xE96D, 0xE96D, 0x8944, 0x8944,
0x0, 0x8944, 0x8944, 0x0, 0xE96D, 0xE96D, 0x0, 0x8944,
0x0, 0x0, 0x0, 0x0, 0x8944, 0x8944, 0x0, 0x0,
};
const uint16_t* fireball_up_sprites[] PROGMEM = {
fireballup0,
fireballup1,
fireballup2,
fireballup3
};
Animation fireball_right = Animation(fireball_right_sprites, 4, true, 2);
Animation fireball_up = Animation(fireball_up_sprites, 4, true, 2);
}