From dfb65f04b8579c9c4e24086452474adcae9b87b7 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Thu, 10 Sep 2015 11:51:00 -0400 Subject: Stuff --- src/entities.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/entities.cpp (limited to 'src') diff --git a/src/entities.cpp b/src/entities.cpp new file mode 100644 index 0000000..1cf2a32 --- /dev/null +++ b/src/entities.cpp @@ -0,0 +1,21 @@ +#include + +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(){} \ No newline at end of file -- cgit v1.2.3