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 HGoal(Vector2 pPosition) { _position = pPosition; _hitBox = new Rectangle((int)_position.X - 48, (int)_position.Y - 48, 96, 96); _bgPartikel = new CirclePartikelEmitter(@"\Partikel\circle", _position, 30, 48, 20, true); }