-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.cpp
73 lines (72 loc) · 1002 Bytes
/
Player.cpp
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
#include "Player.h"
Player::Player()
{
xPos = 165.f; //410.f = 410.0
yPos = 258.f;
posRect = {
(int)xPos,
(int)yPos,
40,
40
};
}
Enemy::Enemy()
{
xPos = 900.f;
yPos = 85.f;
posRect = {
(int)xPos,
(int)yPos,
40,
40
};
}
Enemy2::Enemy2()
{
xPos = 2000.f;
yPos = 185.f;
enemyRect = {
(int)xPos,
(int)yPos,
40,
40
};
}
Enemy3::Enemy3()
{
xPos = 1000.f;
yPos = 285.f;
enemyRect = {
(int)xPos,
(int)yPos,
40,
40
};
}
Enemy4::Enemy4()
{
xPos = 900.f;
yPos = 385.f;
enemyRect = {
(int)xPos,
(int)yPos,
40,
40
};
}
Enemy5::Enemy5()
{
xPos = 6000.f;
yPos = 485.f;
enemyRect = {
(int)xPos,
(int)yPos,
40,
40
};
}
/*Player::~Player()
{
//dtor
}
*/