public HighscoreState(ACWGame game, MainMenuState menu)
        {
            this.mainMenu = menu;
            this.game = game;

            top10String = HighscoreManager.GetTop10();
            //MessageBox.Show(top10String);

            FormatString();
        }
Exemple #2
0
        public GameState(ACWGame game, int seed)
        {
            this.game = game;

            gameRand = new Random(seed);
            if (!(loaded = Load()))
            {
                player = new Accordian(150, 250);
            }
        }
Exemple #3
0
        public MainMenuState(ACWGame game)
        {
            this.game = game;

            buttonWidth = 300;
            buttonHeight = 75;
            buttonX = ACWGame.WIDTH/2 - buttonWidth / 2;
            startY = 100;

            disabled[(int)Buttons.options] = true;

            int counter = 0;
            if (!disabled[(int)Buttons.start]) startRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight);
            if (!disabled[(int)Buttons.options]) optionsRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight);
            if (!disabled[(int)Buttons.controls]) controlRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight);
            if (!disabled[(int)Buttons.highscores]) highscoresRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight);
            if (!disabled[(int)Buttons.exit]) exitRectangle = new Rectangle(buttonX, startY + counter++ * (buttonHeight + buttonHeight / 2), buttonWidth, buttonHeight);
        }
Exemple #4
0
 public AttractState(ACWGame game, MainMenuState menu)
 {
     this.game = game;
     this.mainMenu = menu;
     gameState = new GameState(true);
 }
Exemple #5
0
 public GameOverState(ACWGame game, float score)
 {
     this.game = game;
     this.score = score;
 }
Exemple #6
0
 public ControlState(ACWGame game, MainMenuState state)
 {
     this.game = game;
     previousState = state;
 }