public GameCore() { Content = new FileSystemContentProvider(this, Path.Combine(LocationOnDisk, "../../../../_common")); Graphics.LimitFramerate = false; Graphics.VSyncEnabled = false; }
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")); }
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(); }
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(); }
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; }
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; }
public GameCore() { Content = new FileSystemContentProvider(this, Path.Combine(LocationOnDisk, "../../../../_common")); }
public GameCore() { Content = new FileSystemContentProvider( Path.Combine(AppContext.BaseDirectory, "../../../../_common") ); }