public override void LoadContent() { player = new ScreenSplash(); //title = ScreenManager.Game.Content.Load<Texture2D>("title"); background = ScreenManager.Game.Content.Load<Texture2D>("bgr"); splashTexture = ScreenManager.Game.Content.Load<Texture2D>("backgroundScreen"); splashAnimation = new SplashAnimation(); splashAnimation.Initialize(splashTexture, Vector2.Zero, 284, 115, 7, 30, Color.White, 1f, true); player.Initialize(splashAnimation, splashPosition); }
// Initialize the player public void Initialize(SplashAnimation animation, Vector2 position) { PlayerAnimation = animation; // Set the starting position of the player around the middle of the screen and to the back Position = position; // Set the player to be active Active = true; // Set the player health Health = 30; }
public override void LoadContent() { playerr = new ScreenSplash(); splashPosition = new Vector2(240, 400); splashAnimation = new SplashAnimation(); options = iso.LoadOptions("options.xml"); background = ScreenManager.Game.Content.Load<Texture2D>("mainMenu1_demo"); gameMenuMusic = ScreenManager.Game.Content.Load<Song>("sound/mainMenuMusic"); if (options[2] == true) { playMusic(); isPlaying = true; checkSetting = false; } }