This commit is contained in:
Bilel Bghiel
2015-07-09 11:27:05 +02:00
parent 34f6d10532
commit 79cc140d2f
6 changed files with 86 additions and 54 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ public class PlayState extends GameState {
area.enemyDied((Point2D.Double) enemy.getEnemy().getP1());
area.hit();
enemies_hit++;
infoPanel.throwACoin(); // Coin Animatie starten bij hit
infoPanel.throwACoin(enemy.getColor()); // Coin Animatie starten bij hit
enemysInPath.remove();
notHit = false;
break;
+2 -4
View File
@@ -50,12 +50,10 @@ public class PreGameState extends GameState {
@Override
public void draw(Graphics2D g2) {
g2.drawImage(screenshot,0,0,1280,1024,null);
Font textFont = new Font("OCR A Extended", Font.BOLD,grootte);
g2.setFont(textFont);
g2.setFont(new Font("OCR A Extended", Font.BOLD,grootte));
g2.setStroke(s);
g2.setColor(Color.RED);
String text = "" + index;
int width = g2.getFontMetrics().stringWidth(text);
g2.drawString(text, 325, 400);
if(index < 1){
text = "GO!!!";
@@ -66,7 +64,7 @@ public class PreGameState extends GameState {
else{
text = "READY";
}
width = g2.getFontMetrics().stringWidth(text);
int width = g2.getFontMetrics().stringWidth(text);
g2.drawString(text, (256+1024/2)-width/2, 600);
}