enemy logic added to enemy and out of world

This commit is contained in:
Remco
2016-06-03 11:09:48 +02:00
parent 1c59a3bc6f
commit c3fe041eb1
12 changed files with 49 additions and 39 deletions
+2 -3
View File
@@ -7,7 +7,7 @@ Player* Player::instance = NULL;
Player::Player()
{
speed = 10;
}
Player* Player::getInstance()
@@ -41,8 +41,7 @@ void Player::setCamera()
}
void Player::setPosition(float angle, float fac, bool height)
{
fac *= speed;
{
if (height)
position.y += angle*fac;
else