palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git] / sprites / mines.c
blob4e20f908d0a4ee646a10ab2eef4530540e29ba19
1 #include "../palpic.h"
2 #define PAL_COUNT 14
3 #define SPRITE_COUNT 7
4 #define WIDTH 16
5 #define HEIGHT 112
6 #define o 0
7 #define STRUCT_NAME mines
9 static const struct {
10 struct palpic header;
11 prgb palette[PAL_COUNT];
12 uint8_t data[WIDTH * HEIGHT];
13 } STRUCT_NAME = {
14 { {'p', 'P', 'i', 'C', }, 1, PAL_COUNT, SPRITE_COUNT, WIDTH, HEIGHT, PPF_TRANSPARENT, 0 },
16 PRGB( 0, 0, 0),
17 PRGB( 60, 125, 60),
18 PRGB( 20, 85, 60),
19 PRGB( 85, 125, 125),
20 PRGB(149, 149, 125),
21 PRGB( 20, 60, 60),
22 PRGB( 60, 85, 85),
23 PRGB(190, 190, 190),
24 PRGB(255, 255, 214),
25 PRGB(255, 214, 85),
26 PRGB( 60, 190, 85),
27 PRGB(125, 85, 20),
28 PRGB(190, 149, 85),
29 PRGB(190, 125, 85),
33 /* sprite #000 */
34 o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o,
35 o, o, o, o, o, 6, 6, 6, 6, 6, o, o, o, o, o, o,
36 o, o, o, 3, 3, 3, 3, 3, 3, 3, 6, 6, o, o, o, o,
37 o, o, 3, 3, 3, 6, 6, 5, 5, 5, 3, 3, 6, o, o, o,
38 o, 3, 4, 3, 7, 4, 3, 6, 6, 6, 5, 3, 3, 6, o, o,
39 3, 4, 3, 7, 4, 3, 3, 3, 3, 6, 6, 5, 3, 3, 6, o,
40 3, 7, 3, 8, 4, 6, 3, 6, 3, 5, 6, 5, 4, 3, 6, o,
41 3, 8, 3, 8, 4, 6, 3, 6, 3, 5, 6, 5, 7, 3, 6, o,
42 6, 8, 3, 8, 7, 4, 3, 3, 3, 3, 3, 6, 7, 3, 6, o,
43 5, 4, 7, 3, 8, 7, 4, 4, 3, 3, 6, 3, 4, 6, 5, o,
44 6, 5, 4, 7, 3, 7, 7, 7, 7, 4, 3, 4, 3, 5, 6, o,
45 o, 6, 5, 6, 7, 4, 3, 3, 3, 3, 3, 6, 5, 6, o, o,
46 o, o, 6, 5, 5, 6, 3, 3, 3, 6, 5, 5, 6, o, o, o,
47 o, o, o, 6, 6, 5, 5, 5, 5, 5, 6, 6, o, o, o, o,
48 o, o, o, o, o, 6, 6, 6, 6, 6, o, o, o, o, o, o,
49 o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o,
50 /* sprite #001 */
51 o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o,
52 o, o, o, o, o, 5, 5, 5, 5, 5, o, o, o, o, o, o,
53 o, o, o, 6, 6, 6, 6, 3, 6, 5, 5, 5, o, o, o, o,
54 o, o, 3, 4, 4, 4, 3, 3, 6, 6, 6, 5, 5, o, o, o,
55 o, 3, 7, 9, 8, 9, 9, 6, 4, 3, 6, 6, 5, 5, o, o,
56 3, 4, 9, 8, 8, 8, 8, 5, 7, 4, 3, 6, 6, 5, 5, o,
57 3, 7, 7, 7, 4, 4, 3, 5, 3, 6, 5, 5, 5, 5, 5, o,
58 4, 3, 4, 4, 7, 8, 8, 5, 8, 7, 3, 6, 5, 5, 5, o,
59 3, 4, 7, 8, 8, 8, 8, 6, 8, 7, 4, 3, 6, 5, 5, o,
60 4, 4, 7, 7, 9, 8, 8, 3, 7, 7, 4, 3, 6, 5, 5, o,
61 3, 4, 4, 7, 7, 7, 7, 3, 7, 4, 3, 3, 6, 5, 5, o,
62 o, 3, 4, 4, 7, 7, 7, 3, 4, 3, 3, 6, 5, 5, o, o,
63 o, o, 3, 4, 4, 4, 4, 3, 3, 3, 6, 5, 5, o, o, o,
64 o, o, o, 3, 3, 3, 3, 3, 3, 6, 6, 5, o, o, o, o,
65 o, o, o, o, o, 6, 6, 6, 6, 5, o, o, o, o, o, o,
66 o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o,
67 /* sprite #002 */
68 o, o, o, o, 1, 1, 1, 2,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o, 4, 8, 4, 3, 4, 3, 4, 3, 3, 3, 5, 6, 4, 3, o,
92 o, 4, 8, 4, 3, 6, 3, 7, 3, 3, 6, 5, 6, 4, 3, o,
93 o, 4, 7, 4, 3, 6, 6, 8, 3, 6, 6, 5, 3, 4, 3, o,
94 o, 6, 4, 7, 4, 6, 6, 8, 3, 6, 6, 3, 4, 4, 6, o,
95 o, o, 6, 4, 7, 4, 6, 8, 3, 6, 3, 4, 4, 6, o, o,
96 o, o, o, 6, 3, 4, 4, 8, 3, 4, 4, 3, 6, o, o, o,
97 o, o, o, o, 6, 6, 6, 7, 3, 6, 6, 6, o, o, o, o,
98 o, o, o, o, o, o, 3, 8, 3, 6, o, o, o, o, o, o,
99 o, o, o, o, o, o, 3, 8, 3, 6, o, o, o, o, o, o,
100 o, o, o, o, o, o, o, 4, 3, o, o, o, o, o, o, o,
101 /* sprite #004 */
102 o, o, o, o, o, o, o, 4, 3, o, o, o, o, o, o, o,
103 o, o, o, o, o, o, 3, 8, 3, 6, o, o, o, o, o, o,
104 o, o, o, o, o, o, 3, 8, 3, 6, o, o, o, o, o, o,
105 o, o, o, o, o, o, o, 7, 3, o, o, o, o, o, o, o,
106 o, o, o, o, 3, 4, 4, 8, 3, 6, 6, 6, o, o, o, o,
107 o, o, o, 4, 4, 4, 6, 8, 3, 6, 3, 3, 6, o, o, o,
108 o, o, 4, 7, 4, 3, 3, 7, 3, 3, 6, 3, 3, 6, o, o,
109 o, 4, 7, 4, 3, 3, 3, 4, 3, 4, 3, 6, 3, 3, 6, o,
110 o, 4, 8, 4, 3, 6, 6, 6, 6, 6, 6, 6, 6, 3, 6, o,
111 o, 4, 8, 4, 3, 7, 3, 8, 7, 3, 6, 5, 6, 3, 6, o,
112 o, 4, 7, 4, 3, 7, 3, 6, 6, 3, 6, 5, 6, 3, 3, o,
113 o, 4, 7, 4, 3, 7, 3, 7, 7, 3, 6, 5, 6, 3, 3, o,
114 o, 6, 4, 7, 3, 7, 5, 5, 5, 5, 6, 5, 6, 3, 6, o,
115 o, o, 6, 4, 3, 5, 5, 5, 5, 5, 5, 5, 6, 6, o, o,
116 o, o, o, 6, 6, 5, 6, 6, 6, 5, 5, 5, 6, o, o, o,
117 o, o, o, o, o, 5, 5, 5, 5, 5, 5, o, o, o, o, o,
118 /* sprite #005 */
119 o, o, o, o, 2, 2, 2, 2, 5, 5, 5, o, o, o, o, o,
120 o, o, 2, 2, 1, 1, 1, 1, 2, 2, 2, 5, 5, o, o, o,
121 o, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 5, 5, o, o,
122 o, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 2, 2, 2, 5, o,
123 o, 2,10, 1, 1,10, 1, 1, 1, 2, 2, 1, 2, 2, 5, 5,
124 1, 2, 1,10, 1, 7, 1, 2, 1, 1, 2, 1, 5, 2, 2, 5,
125 1,10, 1, 1, 1,10,10, 1, 2, 1, 1, 2, 1, 5, 2, 5,
126 2, 7, 1,10,10, 1,10, 1,10, 1, 2, 1, 2, 1, 2, 2,
127 2, 1,10, 1, 7,10, 1, 1, 1,10, 2, 1, 2, 1, 5, 2,
128 2, 2, 1, 1, 1,10, 7,10, 1, 2, 1, 2, 2, 1, 5, 2,
129 2, 1, 2,10, 2, 2, 1, 1, 1, 1, 2, 2, 1, 2, 2, 5,
130 2, 1, 2, 2,10, 1, 2, 2,10,10, 1, 1, 2, 5, 2, 5,
131 o, 2, 1, 1, 2,10,10, 1, 1, 1, 1, 1, 5, 5, 2, o,
132 o, o, 2, 2, 1, 1, 2,11, 5, 5, 2, 2, 5, 5, o, o,
133 o, o, o, o, 2, 2, 2,11, 5,11, 2, 5, 5, o, o, o,
134 o, o, o, o, o, o,11,12,13,11,11, o, o, o, o, o,
135 /* sprite #006 */
136 o, o, o, o, 5, 5, 5, 5, 5, 5, 5, o, o, o, o, o,
137 o, o, 5, 5, 6, 6, 6, 6, 5, 5, 5, 5, 5, o, o, o,
138 o, 5, 6, 6, 5, 6, 5, 5, 6, 6, 5, 5, 5, 5, o, o,
139 o, 6, 5, 6, 6, 6, 6, 5, 6, 5, 6, 5, 6, 5, 5, o,
140 o, 5, 3, 6, 6, 3, 6, 6, 3, 5, 5, 6, 5, 6, 5, 5,
141 6, 5, 6, 3, 6, 4, 6, 5, 6, 3, 5, 6, 5, 6, 5, 5,
142 6, 3, 6, 6, 6, 3, 3, 6, 5, 6, 6, 5, 6, 5, 5, 5,
143 5, 3, 6, 3, 3, 6, 3, 6, 3, 6, 5, 6, 5, 6, 5, 5,
144 5, 6, 3, 6, 4, 3, 6, 6, 6, 3, 5, 6, 5, 6, 5, 5,
145 5, 5, 6, 6, 6, 3, 4, 3, 6, 5, 6, 5, 5, 6, 5, 5,
146 5, 6, 5, 6, 5, 5, 6, 6, 6, 6, 5, 5, 6, 5, 5, 5,
147 5, 6, 5, 5, 6, 6, 5, 5, 3, 3, 6, 6, 5, 5, 6, 5,
148 o, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 5, 5, 6, 5, o,
149 o, o, 5, 5, 6, 6, 5, 5, 5, 5,11, 5, 5, 5, o, o,
150 o, o, o, o, o, 5, 5,11, 5,11, 5, 5, 5, o, o, o,
151 o, o, o, o, o, o,11,12,13,11,11, o, o, o, o, o,
156 #undef o
157 #undef PAL_COUNT
158 #undef SPRITE_COUNT
159 #undef WIDTH
160 #undef HEIGHT
161 #undef STRUCT_NAME