1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <entities.h> void Entities::spawn(float x, float y){ loc.x = x; loc.y = y; loci.x = loc.x; loci.y = loc.y; vel.x = 0; vel.y = 0; velg.x = 0; velg.y = 0; } Player::Player(){ width = HLINE * 6; height = HLINE * 16; speed = 1; type = 0; } Player::~Player(){}