repo.or.cz
/
rofl0r-openDOW.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git]
/
sprites
/
bullet.c
blob
b4e29594d1b28bf18c95ac037daee66b2e3b12c3
1
#include
"../palpic.h"
2
#define PAL_COUNT 3
3
#define SPRITE_COUNT 3
4
#define WIDTH 2
5
#define HEIGHT 6
6
#define STRUCT_NAME bullet
7
8
static const struct
{
9
struct
palpic header
;
10
prgb palette
[
PAL_COUNT
];
11
uint8_t
data
[
WIDTH
*
HEIGHT
];
12
}
STRUCT_NAME
= {
13
{ {
'p'
,
'P'
,
'i'
,
'C'
, },
1
,
PAL_COUNT
,
SPRITE_COUNT
,
WIDTH
,
HEIGHT
,
0
,
0
},
14
{
15
PRGB
(
0
,
0
,
0
),
16
PRGB
(
254
,
254
,
254
),
17
PRGB
(
255
,
148
,
21
),
18
19
},
20
{
21
/* sprite #000 */
22
0
,
0
,
23
0
,
0
,
24
/* sprite #001 */
25
1
,
1
,
26
1
,
1
,
27
/* sprite #002 */
28
2
,
2
,
29
2
,
2
,
30
31
},
32
};
33
34
#undef PAL_COUNT
35
#undef SPRITE_COUNT
36
#undef WIDTH
37
#undef HEIGHT
38
#undef STRUCT_NAME
39