static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public Game1() { _instance = this; p.gdm = new GraphicsDeviceManager(this); p.gdm.PreferredBackBufferWidth = 640; p.gdm.PreferredBackBufferHeight = 480; Content.RootDirectory = "Content"; }
public void InitEditor(string platname) { game = new Game1(); game.InitEditor(GraphicsDevice, Services, platname); editorname = platname; timer = Stopwatch.StartNew(); Application.Idle += delegate { Invalidate(); }; }