// Runs the game public void run() { reqPreInit(); graphics.resetGraphics(); window.frame.Load+= delegate(object sender, EventArgs args) { window.frame.Size= new Sdx.Size(800, 640); graphics.renderBox(new Point(-1f, -1f, -1f), new Point(1f, 1f, 1f), new Color("orange")); timer= new PCTimer(update); }; window.frame.Resize+= delegate(object sender, EventArgs args) { if(camera!= null) camera.resetProjection(window.width/window.height); graphics.onResize(sender, args); }; Wfx.Application.EnableVisualStyles(); Wfx.Application.Run(window.frame); }
// Runs the game public void run() { reqPreInit(); window.frame.Load+= delegate(object sender, EventArgs args) { preInit(); preInitMods(); reqInitSounds(); initSounds(); initModSounds(); initTextures(); initModTextures(); reqInitFonts(); initFonts(); initModFonts(); initMisc(); initModMisc(); initStates(); initModStates(); initUserStats(); initModUserStats(); reqPostInitUserStats(); initAchievements(); reqPostInitAchievements(); postInit(); postInitMods(); updater= new PCTimer(onUpdate); }; Wfx.Application.EnableVisualStyles(); Wfx.Application.Run(window.frame); }