Exemple #1
0
 public void startGame()
 {
     gameScreen     = new GameScreen(this);
     currentScreen  = Screen.GameScreen;
     startScreen    = null;
     controlsScreen = null;
     gameoverScreen = null;
 }
Exemple #2
0
 public void quitGame()
 {
     startScreen = new StartScreen(this);
     currentScreen = Screen.StartScreen;
     gameScreen = null;
     scoreboardScreen = null;
     controlsScreen = null;
     gameoverScreen = null;
 }
Exemple #3
0
 public void gameOver(Score score)
 {
     gameoverScreen = new GameoverScreen(this, score);
     currentScreen = Screen.GameoverScreen;
     gameScreen = null;
     scoreboardScreen = null;
     startScreen = null;
     controlsScreen = null;
 }
Exemple #4
0
 public void gameOver(Score score)
 {
     gameoverScreen   = new GameoverScreen(this, score);
     currentScreen    = Screen.GameoverScreen;
     gameScreen       = null;
     scoreboardScreen = null;
     startScreen      = null;
     controlsScreen   = null;
 }
Exemple #5
0
 public void startControls()
 {
     controlsScreen   = new ControlsScreen(this);
     currentScreen    = Screen.ControlsScreen;
     gameScreen       = null;
     scoreboardScreen = null;
     startScreen      = null;
     gameoverScreen   = null;
 }
Exemple #6
0
 public void quitGame()
 {
     startScreen      = new StartScreen(this);
     currentScreen    = Screen.StartScreen;
     gameScreen       = null;
     scoreboardScreen = null;
     controlsScreen   = null;
     gameoverScreen   = null;
 }
Exemple #7
0
 public void startScoreBoard()
 {
     scoreboardScreen = new ScoreboardScreen(this);
     currentScreen    = Screen.ScoreboardScreen;
     startScreen      = null;
     gameScreen       = null;
     controlsScreen   = null;
     gameoverScreen   = null;
 }
Exemple #8
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            startScreen   = new StartScreen(this);
            currentScreen = Screen.StartScreen;


            // TODO: use this.Content to load your game content here
        }
Exemple #9
0
 public void startGame()
 {
     gameScreen = new GameScreen(this);
     currentScreen = Screen.GameScreen;
     startScreen = null;
     controlsScreen = null;
     gameoverScreen = null;
 }
Exemple #10
0
 public void startControls()
 {
     controlsScreen = new ControlsScreen(this);
     currentScreen = Screen.ControlsScreen;
     gameScreen = null;
     scoreboardScreen = null;
     startScreen = null;
     gameoverScreen = null;
 }
Exemple #11
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            startScreen = new StartScreen(this);
            currentScreen = Screen.StartScreen;

            // TODO: use this.Content to load your game content here
        }
Exemple #12
0
 public void startScoreBoard()
 {
     scoreboardScreen = new ScoreboardScreen(this);
     currentScreen = Screen.ScoreboardScreen;
     startScreen = null;
     gameScreen = null;
     controlsScreen = null;
     gameoverScreen = null;
 }