示例#1
0
        public GameCore()
        {
            Content = new FileSystemContentProvider(this, Path.Combine(LocationOnDisk, "../../../../_common"));

            Graphics.LimitFramerate = false;
            Graphics.VSyncEnabled   = false;
        }
示例#2
0
 public GameCore()
 {
     // in normal use cases this is completely unnecessary
     // but there is more than one example project
     // so sharing between them is necessary to keep the
     // source tree clean
     Content = new FileSystemContentProvider(this, Path.Combine(LocationOnDisk, "../../../../_common"));
 }
示例#3
0
        public GameCore()
        {
            Content = new FileSystemContentProvider(
                Path.Combine(AppContext.BaseDirectory, "../../../../_common")
                );

            _log.Info(
                $"GLSL {Shader.MinimumSupportedGlslVersion}-{Shader.MaximumSupportedGlslVersion} supported.");

            Window.GoWindowed(new Size(1024, 600));
            Window.CenterOnScreen();
        }
示例#4
0
        protected Game()
        {
            GraphicsSettings = new GraphicsSettings(this);

            DeltaClock = new Clock();
            FpsCounter = new FpsCounter();
            Content    = new FileSystemContentProvider();

            new Touch(this);
            new Mouse(this);

            Window = new Window(this);
            ResetWindow();

            Initialize();
            LoadContent();
        }
示例#5
0
        public Game()
        {
            _fixedUpdateThread = new Thread(FixedUpdateThread);

            Graphics = new GraphicsManager(this);
            Audio    = new AudioManager();

            Window = new Window(this)
            {
                Draw   = Draw,
                Update = Update
            };

            LoadBuiltInResources();
            Content = new FileSystemContentProvider(this);

            AppDomain.CurrentDomain.UnhandledException += OnDomainUnhandledException;
        }
示例#6
0
        public GameCore()
        {
            Content = new FileSystemContentProvider(
                Path.Combine(AppContext.BaseDirectory, "../../../../_common")
                );

            Window.GoWindowed(new Size(800, 600));
            Audio.DeviceConnected += (_, e) =>
            {
                _log.Info(
                    $"Connected {(e.Device.IsCapture ? "input" : "output")} device {e.Device.Index}: '{e.Device.Name}'.");
            };

            foreach (var e in Audio.Decoders)
            {
                _log.Info($"Decoder: {string.Join(',', e.SupportedFormats)}");
            }

            FixedTimeStepTarget = 75;
        }
示例#7
0
 public GameCore()
 {
     Content = new FileSystemContentProvider(this, Path.Combine(LocationOnDisk, "../../../../_common"));
 }
示例#8
0
 public GameCore()
 {
     Content = new FileSystemContentProvider(
         Path.Combine(AppContext.BaseDirectory, "../../../../_common")
         );
 }