public GameBase(Orientation orientation) : base() { _instance = this; GraphicsDeviceManager graphics = new GraphicsDeviceManager(this); if (orientation == Orientation.Portrait) { graphics.SupportedOrientations = DisplayOrientation.Portrait; } else { graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight; } graphics.IsFullScreen = true; Content.RootDirectory = "Content"; GlobalTimerController.ClearInstance(); TouchProcessor.ClearInstance(); _scenes = new Dictionary <Type, Scene>(); _currentScene = null; _tombstoneFileName = DefaultTombstoneFileName; _sceneTransitionCrossFadeTextureName = ""; }
public GameBase(int screenWidth, int screenHeight, bool fullScreen) : base() { _instance = this; GraphicsDeviceManager graphics = new GraphicsDeviceManager(this); graphics.PreferMultiSampling = true; graphics.IsFullScreen = fullScreen; graphics.PreferredBackBufferWidth = screenWidth; graphics.PreferredBackBufferHeight = screenHeight; Content.RootDirectory = "Content"; GlobalTimerController.ClearInstance(); _scenes = new Dictionary <Type, Scene>(); _currentScene = null; _tombstoneFileName = ""; }