public StartScene() { isActiv = true; _name = "Start"; _backgroundColor = new Color(234, 206, 179); _spriteBatch = new SpriteBatch(SceneManager.Graphics.GraphicsDevice); _renderTarget = new RenderTarget2D(SceneManager.Graphics.GraphicsDevice, 1280, 720); TextureManager.Instance.LoadContentFromStream(@"\Content\Logo.png", "Logo"); TextureManager.Instance.LoadContentFromStream(@"\Content\Vinette.png", "Vinette"); TextureManager.Instance.LoadContentFromStream(@"\Content\MainMenu\borderStart.png", "borderStart"); TextureManager.Instance.LoadContent("TeamRage"); TextureManager.Instance.LoadContent("LogoGA"); TextureManager.Instance.LoadContent("icnTitelName"); //TextureManager.Instance.LoadContentFromStream(@"\Content\MainMenu\StartGame.png", "startGame"); _logoPosition = new Vector2(1280 - TextureManager.Instance.GetTextureByString("Logo").Width / 2, 720 - TextureManager.Instance.GetTextureByString("Logo").Height / 2); _originLogo = new Vector2(TextureManager.Instance.GetTextureByString("Logo").Width / 2, TextureManager.Instance.GetTextureByString("Logo").Height / 2); TextureManager.Instance.LoadContent("Background"); _circleEmitter = new CirclePartikelEmitter(@"Partikel\circle", _logoPosition + new Vector2(50,50), 500, 180, 640, true); ChangeColor(); _btnStart = new HImageButton(new Vector2(170, 400), "StartGame"); _timerTeamLogo = new Timer(2000); _timerGALogo = new Timer(2000); }
public override void Initialize() { #region Buttons PauseMenu this._componentList.Clear(); _btnRetry = new HImageButton(new Vector2(10, 540), "retry"); _btnPlay = new HImageButton(new Vector2(1120, 540), "playAgain"); _btnEndGame = new HImageButton(new Vector2(1150, 10), "exitGame"); this.RebuildSelectList(); #endregion #region Buttons EndMenu #endregion _changeCloud = new HAnimatedSprite(Vector2.Zero, "changeCloud", 5, 2, 1.0f); }