/// <summary> /// Loads graphics content for this screen. The background texture is quite /// big, so we use our own local ContentManager to load it. This allows us /// to unload before going from the menus into the game itself, wheras if we /// used the shared ContentManager provided by the Game class, the content /// would remain loaded forever. /// </summary> public override void Activate(bool instancePreserved) { if (!instancePreserved) { if (content == null) { content = new ContentManager(ScreenManager.Game.Services, "Content"); } soundEffect = content.Load <SoundEffect>("Presentation"); soundEffect.Play(); _MainMenu = content.Load <Song>("Ta-Ku"); MediaPlayer.Play(_MainMenu); MediaPlayer.IsRepeating = true; backgroundTexture = content.Load <Texture2D>("background"); SpriteTexture.Load(content, "background_menu", Frames, FramesPerSec); AkumaPos = new Vector2(500, 0); } }