PREGAMESTATE YUYYYYY
This commit is contained in:
@@ -26,7 +26,7 @@ public class GameControl implements JoystickListener, ButtonListener, ActionList
|
||||
this.view = view;
|
||||
this.gsm = gsm;
|
||||
view.setIgnoreRepaint(true);
|
||||
update = new Timer(0,this);
|
||||
update = new Timer(1000/60,this);
|
||||
update.start();
|
||||
// Timer update = new Timer();
|
||||
// update.schedule(new TimerTask() {
|
||||
|
||||
@@ -9,6 +9,7 @@ import model.gameState.GameOverState;
|
||||
import model.gameState.GameState;
|
||||
import model.gameState.MenuState;
|
||||
import model.gameState.PlayState;
|
||||
import model.gameState.PreGameState;
|
||||
import model.gameState.TitleState;
|
||||
import control.button.Button;
|
||||
import control.button.ButtonHandler;
|
||||
@@ -24,7 +25,8 @@ public class GameStateManager {
|
||||
TITLE_STATE,
|
||||
MENU_STATE,
|
||||
PLAY_STATE,
|
||||
GAMEOVER_STATE
|
||||
GAMEOVER_STATE,
|
||||
PRE_GAME_STATE
|
||||
}
|
||||
|
||||
public GameStateManager(SongHandler sh){
|
||||
@@ -33,6 +35,7 @@ public class GameStateManager {
|
||||
gamestates.add(new MenuState(this, sh));
|
||||
gamestates.add(new PlayState(this, sh));
|
||||
gamestates.add(new GameOverState(this, sh));
|
||||
gamestates.add(new PreGameState(this,sh));
|
||||
setState(State.TITLE_STATE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user