public void Hadouken() { Game1.sAudio.PlaySoundEffect(Game1.Hadouken, 0.5f); int pos = 0; if (effect.Equals(SpriteEffects.FlipHorizontally)) { pos = -250; } Console.WriteLine(effect); hasFired = true; Vector2 positionH = new Vector2(mPosition.X + pos, mPosition.Y + 95); Vector2 sizeH = new Vector2(100, 100);//\\ string hadouken = ""; if (playerNumber == 2) { hadouken = "PinkHadouken"; } else if (playerNumber == 1) { hadouken = "BrazilianHadouken"; } Projectil aux = new Projectil(hadouken, positionH, sizeH, 1, 1, this.SpriteEffects); listHadouken.Add(aux); hadoukenPlay = true; }
public void LightKick(Vector2 position, SpriteEffects spriteffects) { int pos = -75; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -225; } damage = 3; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(65, 65); positionHitbox = new Vector2(position.X + pos, (position.Y + 50f)); SetDrawHitbox(positionHitbox, sizeHitbox); }
public void HeavyPunch(Vector2 position, SpriteEffects spriteffects) { int pos = -90; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -210; } damage = 7; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(100, 30); positionHitbox = new Vector2(position.X + pos, (position.Y + 150f)); SetDrawHitbox(positionHitbox, sizeHitbox); }
public void HeavyKickCrouched(Vector2 position, SpriteEffects spriteffects) { int pos = -60; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -240; } damage = 5; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(120, 40); positionHitbox = new Vector2((position.X + pos), (position.Y + 30f)); SetDrawHitbox(positionHitbox, sizeHitbox); }
//========================================================================== //GROUNDED //========================================================================== public void LightPunch(Vector2 position, SpriteEffects spriteffects) { int pos = -73; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -220; } damage = 2; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(100, 30); positionHitbox = new Vector2((position.X + pos), (position.Y + 170f)); SetDrawHitbox(positionHitbox, sizeHitbox); }
public void HeavyPunchCrouched(Vector2 position, SpriteEffects spriteffects) { int pos = -110; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -180; } damage = 5; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(45, 85); positionHitbox = new Vector2((position.X + pos), (position.Y + 225f)); SetDrawHitbox(positionHitbox, sizeHitbox); }
public void HeavyKickAir(Vector2 position, SpriteEffects spriteffects) { int pos = -65; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -235; } damage = 8; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(65, 65); positionHitbox = new Vector2((position.X + pos), (position.Y + 25f)); SetDrawHitbox(positionHitbox, sizeHitbox); }
public void MediumKickAir(Vector2 position, SpriteEffects spriteffects) { int pos = -90; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -210; } damage = 5; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(40, 70); positionHitbox = new Vector2((position.X + pos), (position.Y + 210f)); SetDrawHitbox(positionHitbox, sizeHitbox); }
public void MediumPunchAir(Vector2 position, SpriteEffects spriteffects) { int pos = -110; if (spriteffects.Equals(SpriteEffects.FlipHorizontally)) { pos = -180; } damage = 4; endAttack = false; attackDuration = 1000; sizeHitbox = new Vector2(45, 65); positionHitbox = new Vector2((position.X + pos), (position.Y + 200f)); SetDrawHitbox(positionHitbox, sizeHitbox); }