summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java')
-rw-r--r--src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java b/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java index 1f9c376..683b361 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java +++ b/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java
@@ -17,17 +17,18 @@ import java.awt.event.KeyEvent;
17 */ 17 */
18public class TitleScreenGameState implements GameState { 18public class TitleScreenGameState implements GameState {
19 19
20 public void initalize() throws Exception 20 public void initalize()
21 { 21 {
22 Audio.playMusic("Opening"); 22 Audio.playMusic("Opening");
23 } 23 }
24 24
25 public void deinitalize() throws Exception 25 public void deinitalize()
26 { 26 {
27 Audio.stopMusic(); 27 Audio.stopMusic();
28 } 28 }
29 29
30 public void processInput() throws Exception { 30 public void processInput()
31 {
31 if (Game.getKey().getKeyCode() == KeyEvent.VK_ENTER) 32 if (Game.getKey().getKeyCode() == KeyEvent.VK_ENTER)
32 { 33 {
33 Game.setSaveFile(new SaveFile()); 34 Game.setSaveFile(new SaveFile());
@@ -38,11 +39,13 @@ public class TitleScreenGameState implements GameState {
38 } 39 }
39 } 40 }
40 41
41 public void doGameCycle() throws Exception { 42 public void doGameCycle()
43 {
42 // Do nothing, yet 44 // Do nothing, yet
43 } 45 }
44 46
45 public void render(Graphics2D g) throws Exception { 47 public void render(Graphics2D g)
48 {
46 g.drawImage(ObjectLoader.getImage("Picture", "Title"), 0, 0, null); 49 g.drawImage(ObjectLoader.getImage("Picture", "Title"), 0, 0, null);
47 } 50 }
48 51