-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enemy.h
46 lines (35 loc) · 863 Bytes
/
Enemy.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
/*
<<<Developed by Regson Jaques>>>
https://www.youtube.com/c/RegsonJaquesMA
https://github.com/tictackode
https://twitter.com/regsonj
*/
class Enemy
{
public:
int x;
int y;
BITMAP* enemy_right;
BITMAP* enemy_left;
Enemy()
{
this->enemy_left=create_bitmap(64,64);
this->enemy_right=create_bitmap(64,64);
this->enemy_right=load_bitmap("img/skull_right.bmp",0);
if(!this->enemy_right)
{
exit(1);
}
this->enemy_left=load_bitmap("img/skull_left.bmp",0);
if(!this->enemy_left)
{
exit(1);
}
}
~Enemy()
{
destroy_bitmap(this->enemy_right);
destroy_bitmap(this->enemy_left);
//delete(this);
}
}skeleton;