blob: f9a9b516e654e961081858499254ecd1dd616f58 (
plain)
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
|
#ifndef LOLIDRA_H
#define LOLIDRA_H
#include "../collision.h"
typedef struct {
int id;
double x, y;
double positionY;
double imageIndex, hoverRot;
int hp, state, invincible,
visible, timer, counter;
Mask mask;
} Lolidra;
void createLolidra(int x, int y);
void lolidraStep(Lolidra* l);
void lolidraDraw(Lolidra* l);
//Minion
typedef struct {
int id;
int state;
int timer;
double x, y;
double positionY;
double imageIndex;
double dir, spd;
Mask mask;
} Minion;
void createMinion(int x, int y);
void minionStep(Minion* m);
void minionDraw(Minion* m);
#endif
|