aboutsummaryrefslogtreecommitdiff
path: root/src/enemies/skeleton.h
blob: a7b0816cba149129d38d11e618e0271a4cf7ed4d (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
#ifndef SKELETON_H
#define SKELETON_H

#include "../collision.h"

typedef struct {
	int id;
	double x, y;
	double hsp;
	double imageIndex;
	int dir;
	int hp;
	int state, timer, invincible;
	
	Mask mask;
} Skeleton;

void createSkeleton(int x, int y, int dir);

typedef struct {
	int id;
	double x, y;
	double hsp, vsp, grav;
	double imageIndex;
	
	Mask mask;
} Bone;

void createBone(int x, int y, int dir);

#endif