aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
blob: 754c77756dec23a8b61ead401833d1f8e3bb3608 (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
#include <entities.h>

void Entities::spawn(float x, float y){
	loc.x = x;
	loc.y = y;
	vel.x = 0;
	vel.y = 0;
	right = false;
	left = false;
}

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;
}