Exemplo n.º 1
0
 public FireBall(Vector2 location, Boolean facingRight, IMario shooter)
 {
     Location = location;
     Velocity = facingRight ? new Vector2(speed, Velocity.Y) : new Vector2(-speed, Velocity.Y);
     Status   = FireBallStatus.Moving;
     Sprite   = UniversalSpriteFactory.Instance.CreateSprite("FireBall", Location);
     Shooter  = shooter;
 }
Exemplo n.º 2
0
 public void Explode()
 {
     Sprite = UniversalSpriteFactory.Instance.CreateSprite("FireBallExplosion", Location);
     Status = FireBallStatus.Exploded;
 }