Merge branch 'developer' into feature/gameplay

# Conflicts:
#	CrystalPoint.cpp
This commit is contained in:
Aaldert
2016-06-21 14:06:41 +02:00
18 changed files with 98 additions and 20 deletions
+4 -3
View File
@@ -17,8 +17,6 @@ int CrystalPoint::height = 0;
SoundSystem CrystalPoint::sound_system;
bool state = false;
void CrystalPoint::init()
{
player = Player::getInstance();
@@ -51,9 +49,9 @@ void CrystalPoint::draw()
worldhandler->draw();
if(!state)
menu->draw();
glutSwapBuffers();
}
@@ -64,6 +62,9 @@ void CrystalPoint::update()
float deltaTime = frameTime - lastFrameTime;
lastFrameTime = frameTime;
if (keyboardState.keys[27] && !prevKeyboardState.keys[27])
state = !state;
if (state)
{
if (keyboardState.special[GLUT_KEY_LEFT] && !prevKeyboardState.special[GLUT_KEY_LEFT])