static void Main(string[] args) { using (XNAGame game = new XNAGame()) { game.Run(); } }
public XNAGame() { instance = this; graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 1024; graphics.PreferredBackBufferHeight = 768; graphics.PreferMultiSampling = true; graphics.SynchronizeWithVerticalRetrace = true; graphics.ApplyChanges(); Content.RootDirectory = "Content"; }