Exemplo n.º 1
0
        public Multiplayer(GameStates currentGameState, GraphicsDeviceManager graphics)
        {
            this.graphics         = graphics;
            this.currentGameState = currentGameState;
            boundary      = new Boundary(graphics);
            gameLoopLogic = new GameLoopLogic(graphics, boundary);

            gameLoopLogic.players.Add(new Player(ControlType.GamePlay, PlayerIndex.One, graphics, this.currentGameState));
            gameLoopLogic.players.Add(new Player(ControlType.GamePlay, PlayerIndex.Two, graphics, this.currentGameState));
            gameClock = new GameClock(graphics);
            active    = true;
        }