Merge branch 'develop' of https://github.com/ProjectGroepA2/Arcade into develop

Conflicts:
	image/Images.java
This commit is contained in:
Bilel Bghiel
2015-06-19 19:46:35 +02:00
4 changed files with 12 additions and 3 deletions
+7
View File
@@ -49,6 +49,13 @@ public class GameOverState extends GameState {
createBackground();
ButtonHandler.getButton(1).setColor(GameModel.colors[0]);
ButtonHandler.getButton(2).setColor(GameModel.colors[2]);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
JoystickHandler.REPEAT = true;
uploaded = false;
}
+1
View File
@@ -30,6 +30,7 @@ import control.GameStateManager.State;
import control.button.ButtonEvent;
import control.button.ButtonHandler;
import control.joystick.Joystick;
import control.joystick.Joystick.Position;
import control.joystick.JoystickEvent;
import control.joystick.JoystickHandler;
import data.io.SQLConnector;
+1 -1
View File
@@ -158,7 +158,7 @@ public class PlayState extends GameState {
}
private void endGame() {
if(sh.getProgress()/1000 < 5000)
if(sh.getProgress()/1000 > 5000)
{
sql.addPlaydata(sh.getCurrentSong(), sh.getCurrentSongInstance(), sh.getProgress()/1000, enemies_missed, enemies_hit, buttons_pressed, joystick_moved);
sh.getCurrentSongInstance().played();