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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#ifndef HEADS_H
#define HEADS_H
#include "../collision.h"
//Goblin/medusa/dragon head statues
typedef struct {
int id, type; //0 = Rhyno head | 1 = Goblin | 2 = Dragon | 3 = Demon | 4 = Fireball | 5 = Air Jar
int state, timer;
double x, y;
int dir;
int hp, invincible;
int cooloff;
int counter;
//Mask mask;
} Head;
void createHead(int type, int x, int y, int dir, int offset, int cooloff);
//Bullet from Rhyno statues
typedef struct {
int id;
double x, y;
int hsp;
double imageIndex;
//Mask mask;
} Bullet;
void createBullet(int x, int y, int dir, int minid); //Minid is the spawner's id
//Fireball
typedef struct {
int id;
double x, y;
int angle;
int spd;
double imageIndex;
Mask mask;
} Fireball;
void createFireball(int x, int y, int angle, int minid);
//Medusa lazer
typedef struct {
int id;
double x, y;
int dir;
double imageIndex;
Mask mask;
} Laser;
void createLaser(int x, int y, int dir);
//Dragon flame
typedef struct {
int id;
int x, y;
int dir;
int timer;
double imageIndex;
} Flame;
void createFlame(int x, int y, int dir);
//Demon Boulder
typedef struct {
int id;
double x, y;
double vsp;
int dir;
double imageIndex;
} Rock;
void createRock(int x, int y, int dir);
//Air
typedef struct {
int id;
double x, y;
double imageIndex;
} Air;
void createAir(int x, int y);
#endif
|