示例#1
0
 //constructor
 public MenuController(GameController controller, BBN_Game.BBNGame g)
 {
     gameController = controller;
     this.game = g;
     graphics = g.GraphicsDevice;
     currentState = controller.CurrentGameState;
     gameController.PreviousState = currentState;
     Content = g.Content;
     screenHeight = graphics.Viewport.Height;
     screenWidth = graphics.Viewport.Width;
 }
示例#2
0
        public GameController(BBN_Game.BBNGame game)
        {
            this.game = game;

            // Set up the Variables
            gameState = GameState.MainMenu;
            prevGameState = GameState.notLoaded;
            numPlayers = Players.single;
            ObjectsLoaded = false;
        }