protected override void Initialize() { ActualScene = new StartupScene(); graphics.PreferredBackBufferWidth = 800; graphics.PreferredBackBufferHeight = 600; graphics.ApplyChanges(); base.Initialize(); }
public static void Init() { //Init the game Win = new Window(1280, 720, "NS Tech 2D"); Win.SetVSync(true); Win.SetDefaultOrthographicSize(720); OptimalScreenHeight = 1080; UnitSize = Win.Height / Win.OrthoHeight; OptimalUnitSize = OptimalScreenHeight / Win.OrthoHeight; //Setup scenes StartupScene startupScene = new StartupScene(); startupScene.nextScene = null; currentScene = startupScene; }