/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (AsteroidGame game = new AsteroidGame()) { game.Run(); } }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. _spriteBatch = new SpriteBatch(GraphicsDevice); _ag = new AsteroidGame(this, _graphics, _spriteBatch); // TODO: use this.Content to load your game content here }
private static void Main() { using (var game = new AsteroidGame()) game.Run(); }