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 HImageTimeBar(Vector2 pPosition, String pTextureName, String pTextureName2, String pTextureName3, double pDuration) { _position = pPosition; _textureName = pTextureName; _texture = TextureManager.Instance.GetTextureByString(_textureName); _texture2 = TextureManager.Instance.GetTextureByString(pTextureName2); _texture3 = TextureManager.Instance.GetTextureByString(pTextureName3); _textureHeight = _texture.Height; _textureWidth = _texture.Width; _textureOrigin = new Vector2(_textureWidth / 2, _textureHeight / 2); _timer = new Timer(pDuration); }