public override void ShootFireBall()
 {
     if (mario.fireballLeft > 0)
     {
         fireball = new Fireball(mario.Position, !mario.isLeft);
         Game1.Instance.gameObjects.Add(fireball);
         mario.fireballLeft--;
     }
 }
 public override void ShootFireBall()
 {
     if (mario.fireballLeft > 0)
     {
         fireball = new Fireball(mario.Position, !mario.isLeft);
         SoundFactory.Instance.playFireballSoundEffect();
         Game1.Instance.gameObjects.Add(fireball);
     }
 }
Beispiel #3
0
 public override void ShootFireBall()
 {
     if (mario.fireballLeft > 0)
     {
         fireballPosition = mario.Position;
         if (Game1.Instance.isPkMode)
         {
             fireballPosition.X += ConstantNumber.FIREBALL_OFFSET;
         }
         fireball = new Fireball(fireballPosition, !mario.isLeft);
         SoundFactory.Instance.playFireballSoundEffect();
         Game1.Instance.gameObjects.Add(fireball);
         mario.fireballLeft--;
     }
 }
Beispiel #4
0
 public ExplodedFireBallState(Fireball fireball)
 {
     this.fireball  = fireball;
     fireballSprite = ProjectileSpriteFactory.Instance.CreateExplodedFireBall();
 }
 public AttackFireBallState(Fireball fireball)
 {
     this.fireball  = fireball;
     fireballSprite = ProjectileSpriteFactory.Instance.CreateFireBall();
 }
 public BasicPhysics(Fireball fireball)
 {
     this.fireball = fireball;
 }