aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Belle-Isle <abelleisle@roadrunner.com>2015-09-10 11:51:00 -0400
committerAndy Belle-Isle <abelleisle@roadrunner.com>2015-09-10 11:51:00 -0400
commitdfb65f04b8579c9c4e24086452474adcae9b87b7 (patch)
treea020a31c1813f52864b71025c133823b6aad9f55 /src
parent1f769cf0e589001adc4a65d621f7968550209799 (diff)
Stuff
Diffstat (limited to 'src')
-rw-r--r--src/entities.cpp21
1 files changed, 21 insertions, 0 deletions
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 <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(){} \ No newline at end of file