Hp, Lvl en Xp gameplay toegevoegt
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user