public void LoadContent(Game game) { enemiesRemainingText = new FontString("remaining:", new Vector2(10, 5), 0.5f, game.Content); enemiesRemainingValue = new FontString(ContentController.getViruses().Count, new Vector2(345, 5), 0.5f, game.Content); heartHealthText = new FontString("health:", new Vector2(500, 5), 0.5f, game.Content); heartHealthValue = new FontString(Heart.health, new Vector2(715, 5), 0.5f, game.Content); playerScoreText = new FontString("score:", new Vector2(900, 5), 0.5f, game.Content); playerScoreValue = new FontString(Heart.score, new Vector2(1090, 5), 0.5f, game.Content); }
protected override void LoadContent() { base.LoadContent(); spriteBatch = new SpriteBatch(GraphicsDevice); background = Game.Content.Load<Texture2D>("startbg.png"); titleMusic = Game.Content.Load<Song>("VGJ - Title or Transition.wav"); startText = new FontString("press enter to start", new Vector2(420, 650), 0.7f, Game.Content); MediaPlayer.Volume = 0.07f; MediaPlayer.IsRepeating = true; }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); winMusic = Game.Content.Load<Song>("Theme Song.wav"); background = Game.Content.Load<Texture2D>("stageclear.png"); stageText = new FontString("stage:", new Vector2(400, 380), 0.8f, Game.Content); stageValue = new FontString(GameLoop.stage, new Vector2(695, 380), 0.8f, Game.Content); ; scoreText = new FontString("score:", new Vector2(400, 500), 0.8f, Game.Content);; scoreValue = new FontString(Heart.score, new Vector2(700, 500), 0.8f, Game.Content);; MediaPlayer.IsRepeating = true; MediaPlayer.Play(winMusic); }