forked from citrus-it/picube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sprite.h
36 lines (30 loc) · 969 Bytes
/
sprite.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
typedef struct sprite {
byte buffer[6][6][6];
byte description[6][6][6];
// Sprite dimensions
int myX, myY, myZ;
int intensity;
int place[3]; // lower corner position of sprite
int motion[3]; // direction to move when asked.
} *sprite;
sprite sprite_create(int, int, int);
void sprite_delete(sprite);
void sprite_description(sprite, byte d[6][6][6]);
void sprite_copyback(sprite);
void sprite_colorIt(sprite, int);
void sprite_outline(sprite, int);
void sprite_place(sprite, int, int, int);
void sprite_placeX(sprite, int, int);
void sprite_motion(sprite, int, int, int);
void sprite_setIt(sprite);
void sprite_clearIt(sprite);
void sprite_moveIt(sprite);
void sprite_bounceIt(sprite);
void sprite_sphere(sprite, int);
void sprite_rollX(sprite, int);
void sprite_rollY(sprite, int);
void sprite_rollZ(sprite, int);
void sprite_rotateX(sprite, int);
void sprite_rotateY(sprite, int);
void sprite_rotateZ(sprite, int);
void sprite_ChgIntensity(sprite, int);