Esempio n. 1
0
        internal Game(AccelerometerHandlerDelegate accelerometerHandler)
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.IsFullScreen              = true;
            graphics.PreferredBackBufferWidth  = 800;
            graphics.PreferredBackBufferHeight = 480;
            graphics.SupportedOrientations     = DisplayOrientation.Portrait;

            GetAccelerometerVector = accelerometerHandler;
            _onGamePause           = null;
            _onGameResume          = null;

            _currentGameState = GameState.LOADING;
        }
Esempio n. 2
0
 public SinglePlayerGame(AccelerometerHandlerDelegate accelerometerHandler)
     : base(accelerometerHandler)
 {
 }