blob: 19ac536f185b0de5baf3d184ead19df0155a5e97 (
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
|
#include <entities.h>
void Entity::spawn(float x, float y){
loc.x = x;
loc.y = y;
vel.x = 0;
vel.y = 0;
right = false;
left = false;
}
void Entity::draw(void){
glColor3ub(0,0,100);
glRectf(loc.x,loc.y,loc.x+width,loc.y+height);
}
Player::Player(){
width = HLINE * 8;
height = HLINE * 18;
speed = 1;
type = 0;
}
Player::~Player(){
}
NPC::NPC(){
width = HLINE * 8;
height = HLINE * 18;
speed = 1;
type = 0;
}
|