aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-12 13:39:36 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-12 13:39:36 -0400
commitec1a918b845457b4d578f4d31257b989b5de3d42 (patch)
treed4e8105d31368b9f2d8d18e7e72614ec6271ff61 /src/entities.cpp
parent8bf284574d5a4c1aba3e488e8d9417e788dae5b6 (diff)
parent6a28f446c501f09153ca77eb22951de7bb144e18 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 8d582a1..754c777 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -3,19 +3,26 @@
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;
+ right = false;
+ left = false;
}
Player::Player(){
- width = HLINE * 6;
- height = HLINE * 16;
+ width = HLINE * 8;
+ height = HLINE * 18;
speed = 1;
type = 0;
}
-Player::~Player(){}
+Player::~Player(){
+
+}
+
+NPC::NPC(){
+ width = HLINE * 8;
+ height = HLINE * 18;
+ speed = 1;
+ type = 0;
+}