/// <summary> /// Loads the game content /// </summary> protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here ship.LoadContent(Content); }
/// <summary> /// Loads content for the game /// </summary> protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here foreach (var asteroid in asteroids) { asteroid.LoadContent(Content); } ship.LoadContent(Content); spriteFont = Content.Load <SpriteFont>("arial"); }