-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsprites.h
58 lines (53 loc) · 1.28 KB
/
sprites.h
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
#define SPRCTL0_1_bit_per_pixel 0
#define SPRCTL0_2_bits_per_pixel 0x40
#define SPRCTL0_3_bits_per_pixel 0x80
#define SPRCTL0_4_bits_per_pixel 0xc0
#define SPRCTL0_h_flip 0x20
#define SPRCTL0_v_flip 0x10
#define SPRCTL0_shadow 7
#define SPRCTL0_xor_shadow 6
#define SPRCTL0_non_collide 5
#define SPRCTL0_normal 4
#define SPRCTL0_boundary 3
#define SPRCTL0_boundary_shadow 2
#define SPRCTL0_background_no_coll 1
#define SPRCTL0_background_shadow 0
#define SPRCTL1_literal 0x80
#define SPRCTL1_hsize_vsize_strech_tilt 0x30
#define SPRCTL1_hsize_vsize_strech 0x20
#define SPRCTL1_hsize_vsize 0x10
#define SPRCTL1_no_palette 0x08
#define SPRCTL1_skip_sprite 0x04
#define SPRCTL1_start_drawing_up 0x02
#define SPRCTL1_start_drawing_left 0x01
#define SPRCOLL_dont_collide 0x20
#define SPRCOLL_number_0_3 0x00
typedef struct {
unsigned char b0;
unsigned char b1;
unsigned char b2;
void *next;
void *bitmap;
int posx, posy;
} sprite_simple;
typedef struct {
unsigned char b0;
unsigned char b1;
unsigned char b2;
void *next;
void *bitmap;
int posx, posy, sizex, sizey;
char palette[8];
} sprite_sizable;
typedef struct {
unsigned char b0;
unsigned char b1;
unsigned char b2;
void *next;
void *bitmap;
int posx, posy;
int sizex, sizey;
int stretch;
int tilt;
char palette[8];
} sprite_complete;