Exemple #1
0
        public XnaDartsGame()
        {
            GraphicsDeviceManager = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            Options = Options.Load();

            _updateResolution();

            SoundManager  = new SoundManager(Content);
            ScreenManager = new ScreenManager(this);

            var fpsCounter = new FpsCounter(this);

            Components.Add(ScreenManager);
            Components.Add(fpsCounter);

            Components.Add(new SerialPortStatusComponent(this));

            IsMouseVisible = true;
        }
Exemple #2
0
        public XnaDartsGame()
        {
            GraphicsDeviceManager = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            Options = Options.Load();

            GraphicsDeviceManager.PreferredBackBufferWidth = Options.Resolutions[Options.ResolutionIndex].Width;
            GraphicsDeviceManager.PreferredBackBufferHeight = Options.Resolutions[Options.ResolutionIndex].Height;

            GraphicsDeviceManager.IsFullScreen = Options.FullScreen;

            SoundManager = new SoundManager(Content);
            ScreenManager = new ScreenManager(this);

            var fpsCounter = new FpsCounter(this);

            Components.Add(ScreenManager);
            Components.Add(fpsCounter);

            Components.Add(new SerialPortStatusComponent(this));

            IsMouseVisible = true;
        }
Exemple #3
0
        public XnaDartsGame()
        {
            GraphicsDeviceManager = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            Options = Options.Load();

            GraphicsDeviceManager.PreferredBackBufferWidth  = Options.Resolutions[Options.ResolutionIndex].Width;
            GraphicsDeviceManager.PreferredBackBufferHeight = Options.Resolutions[Options.ResolutionIndex].Height;

            GraphicsDeviceManager.IsFullScreen = Options.FullScreen;

            SoundManager  = new SoundManager(Content);
            ScreenManager = new ScreenManager(this);

            var fpsCounter = new FpsCounter(this);

            Components.Add(ScreenManager);
            Components.Add(fpsCounter);

            Components.Add(new SerialPortStatusComponent(this));

            IsMouseVisible = true;
        }