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
/
ws_bolt.c
blob
d979c35456e17714d07a88be97273b3789a736c6
1
#include
"../palpic.h"
2
#define PAL_COUNT 7
3
#define SPRITE_COUNT 1
4
#define WIDTH 7
5
#define HEIGHT 7
6
#define o 0
7
#define STRUCT_NAME ws_bolt
8
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
},
15
{
16
PRGB
(
0
,
0
,
0
),
17
PRGB
(
255
,
255
,
221
),
18
PRGB
(
187
,
153
,
85
),
19
PRGB
(
187
,
119
,
85
),
20
PRGB
(
255
,
221
,
85
),
21
PRGB
(
119
,
85
,
17
),
22
PRGB
(
17
,
51
,
51
),
23
24
},
25
{
26
/* sprite #000 */
27
o
,
1
,
2
,
3
,
2
,
4
,
o
,
28
1
,
2
,
3
,
5
,
3
,
2
,
4
,
29
2
,
3
,
5
,
6
,
5
,
3
,
2
,
30
3
,
5
,
6
,
o
,
6
,
5
,
3
,
31
3
,
3
,
5
,
6
,
5
,
3
,
2
,
32
5
,
3
,
3
,
5
,
3
,
2
,
5
,
33
o
,
5
,
3
,
3
,
3
,
5
,
o
,
34
35
},
36
};
37
38
#undef o
39
#undef PAL_COUNT
40
#undef SPRITE_COUNT
41
#undef WIDTH
42
#undef HEIGHT
43
#undef STRUCT_NAME
44