Merge branch 'develop' of https://github.com/ProjectGroepA2/Arcade into infoPanel
This commit is contained in:
@@ -9,7 +9,7 @@ import control.button.ButtonHandler;
|
||||
|
||||
public class GameModel {
|
||||
|
||||
public static Color[] colors = { Color.GREEN, Color.YELLOW, Color.RED, Color.MAGENTA, Color.CYAN, Color.ORANGE };
|
||||
public static Color[] colors = { Color.GREEN, Color.YELLOW, Color.RED, Color.MAGENTA, Color.CYAN, Color.BLUE };
|
||||
private GameStateManager gsm;
|
||||
private NetworkHandler ntw;
|
||||
private int count = 0;
|
||||
|
||||
@@ -15,6 +15,7 @@ import model.SongHandler;
|
||||
import control.GameStateManager;
|
||||
import control.GameStateManager.State;
|
||||
import control.button.ButtonEvent;
|
||||
import control.button.ButtonHandler;
|
||||
import control.joystick.JoystickEvent;
|
||||
import data.io.SQLConnector;
|
||||
|
||||
@@ -36,6 +37,7 @@ public class HelpState extends GameState {
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
ButtonHandler.getButton(2).setColor(GameModel.colors[2]);
|
||||
sh.play();
|
||||
}
|
||||
|
||||
|
||||
@@ -417,7 +417,7 @@ public class MenuState extends GameState {
|
||||
g2.setFont(textFont);
|
||||
|
||||
boolean highscoresFound = true;
|
||||
int HIGHSCORES_TO_DISPLAY = 5;
|
||||
int HIGHSCORES_TO_DISPLAY = 7;
|
||||
|
||||
List<Highscore> highscores = sql.getHighscoresToday(selectedToSong(selected), sh.getCurrentSong().getSongs().get(difSelect));
|
||||
if(highscores.isEmpty())
|
||||
@@ -428,10 +428,10 @@ public class MenuState extends GameState {
|
||||
highscoresFound = false;
|
||||
}
|
||||
else
|
||||
g2.drawString("All Time Highscores", 30, 300);
|
||||
g2.drawString("All Time Highscores", 30, 235);
|
||||
}
|
||||
else
|
||||
g2.drawString("Daily Highscore", 30, 300);
|
||||
g2.drawString("Daily Highscore", 30, 235);
|
||||
g2.setFont(textFont2);
|
||||
|
||||
if(highscoresFound)
|
||||
@@ -442,7 +442,7 @@ public class MenuState extends GameState {
|
||||
{
|
||||
Highscore hi = highscores.get(i);
|
||||
|
||||
g2.drawString(hi.getName() + " - " + hi.getScore(), 30, 350 + i*100);
|
||||
g2.drawString(" " + (i+1) + "# " + hi.getName() + " - " + hi.getScore(), 30, 290 + i*80);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -530,4 +530,4 @@ public class MenuState extends GameState {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -69,6 +69,14 @@ public class TitleState extends GameState {
|
||||
xKast %= 4;
|
||||
g2.drawImage(kast.getSubimage(xKast * 300, 0, 300, 400), 100, 300, 300, 400, null);
|
||||
}
|
||||
g2.drawImage(background, 0, 0, 1280, 1024, null);
|
||||
int image_x = ((frame / 6) % 6) * 49;
|
||||
g2.drawImage(pressStart.getSubimage(image_x, 0, 49, 26), 640-122, 512, 245, 130, null);
|
||||
|
||||
xKast = indexKast/10;
|
||||
xKast%=4;
|
||||
//g2.drawImage(kast.getSubimage(xKast*300,0,300,400), 640-122,650,300,400,null);
|
||||
g2.drawImage(kast.getSubimage(xKast*600,0,600,800), 490,624,300,400,null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -29,9 +29,11 @@ public class DifficultyButton {
|
||||
g2.setColor(Color.WHITE);
|
||||
g2.fillRect(0, 0, 300, 75);
|
||||
g2.setColor(Color.ORANGE);
|
||||
g2.drawRect(0, 0, 300, 75);
|
||||
//g2.drawRect(0-2, 0-2, 304, 79);
|
||||
|
||||
// g2.drawRect(0, 0, 300, 75);
|
||||
// g2.drawRect(0-2, 0-2, 304, 79);
|
||||
g2.drawRect(0, 0, 304, 79);
|
||||
g2.drawRect(2, 2, 300, 75);
|
||||
g2.setColor(color);
|
||||
Font textFont2 = new Font("OCR A Extended", Font.BOLD, 50);
|
||||
g2.setFont(textFont2);
|
||||
|
||||
Reference in New Issue
Block a user