Hp, Lvl en Xp gameplay toegevoegt

This commit is contained in:
Aaldert
2016-06-21 12:25:38 +02:00
parent 7c4805d899
commit 35c21260e4
7 changed files with 76 additions and 10 deletions
+9
View File
@@ -72,9 +72,18 @@ void CrystalPoint::update()
worldhandler->NextWorld();
if (keyboardState.keys[27])
state = false;
Player* player = Player::getInstance();
//testing code
if (keyboardState.keys['u'])
player->HpUp(1);
if (keyboardState.keys['i'])
player->HpDown(1);
if (keyboardState.keys['o'])
player->XpUp(1);
player->rotation.y += mouseOffset.x / 10.0f;
player->rotation.x += mouseOffset.y / 10.0f;
if (player->rotation.x > 90)