浏览代码

Help State Added

Daniel 10 年之前
父节点
当前提交
2d9daf8844
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 5 0
      model/gameState/HelpState.java
  2. 7 2
      model/gameState/MenuState.java

+ 5 - 0
model/gameState/HelpState.java

@@ -0,0 +1,5 @@
+package model.gameState;
+
+public class HelpState {
+
+}

+ 7 - 2
model/gameState/MenuState.java

@@ -49,6 +49,8 @@ public class MenuState extends GameState {
 	int yPosDiffButton = 900;
 	int yPosDiffButton = 900;
 	private int difSelect=0, oldDifSelect = -1;
 	private int difSelect=0, oldDifSelect = -1;
 	Font textFont = new Font("OCR A Extended", Font.BOLD, 50);
 	Font textFont = new Font("OCR A Extended", Font.BOLD, 50);
+	Font textFont2 = new Font("OCR A Extended", Font.BOLD, 35);
+	Font textFont3 = new Font("OCR A Extended", Font.BOLD, 20);
 	Font textFontSmall = new Font("OCR A Extended", Font.BOLD, 15);
 	Font textFontSmall = new Font("OCR A Extended", Font.BOLD, 15);
 	BufferedImage aanwijzers = Images.getImage(ImageType.aanwijzers);
 	BufferedImage aanwijzers = Images.getImage(ImageType.aanwijzers);
 	int index = 0;
 	int index = 0;
@@ -380,8 +382,10 @@ public class MenuState extends GameState {
  		g2.setFont(textFont);
  		g2.setFont(textFont);
 		g2.drawString(selectedToSong(selected).getTitle(), 30, 60);
 		g2.drawString(selectedToSong(selected).getTitle(), 30, 60);
 		
 		
+ 		g2.setFont(textFont3);
 		g2.setColor(Color.WHITE);
 		g2.setColor(Color.WHITE);
-		g2.drawString("Author: " + selectedToSong(selected).getAuthor(), 30, 200);
+		g2.drawString("Author: " + selectedToSong(selected).getAuthor(), 30, 100);
+		g2.setFont(textFont);
 		
 		
 		boolean highscoresFound = true;
 		boolean highscoresFound = true;
 		int HIGHSCORES_TO_DISPLAY = 5;
 		int HIGHSCORES_TO_DISPLAY = 5;
@@ -399,6 +403,7 @@ public class MenuState extends GameState {
 		}
 		}
 		else
 		else
 			g2.drawString("Daily Highscore", 30, 300);
 			g2.drawString("Daily Highscore", 30, 300);
+ 			g2.setFont(textFont2);
 		
 		
 		if(highscoresFound)
 		if(highscoresFound)
 		{
 		{
@@ -408,7 +413,7 @@ public class MenuState extends GameState {
 			{
 			{
 				Highscore hi = highscores.get(i);
 				Highscore hi = highscores.get(i);
 				
 				
-				g2.drawString(hi.getName() + " - " + hi.getScore(), 30, 400 + i*100);
+				g2.drawString(hi.getName() + " - " + hi.getScore(), 30, 350 + i*100);
 			}
 			}
 		}
 		}
 		else
 		else