예제 #1
0
 public override void Activate(AdventurePlayer player, AdventureScreen screen, Game game)
 {
     if ((cooldown == 0) && (player.z == 0))
     {
         Vector2 location = new Vector2(player.location.X, player.location.Y - 16);
         AdventureProjectile proj = new AdventureProjectile(true, player.faceDir, location, 30, 1);
         screen.addObject(proj);
         cooldown = 30;
         PlaySound.Play(PlaySound.SoundEffectName.Pew);
     }
 }
 public static AdventureProjectile getIntangibleProjectile(bool friendly, Master.Directions faceDir, Vector2 location, int deathTimer)
 {
     AdventureProjectile aP = new AdventureProjectile(friendly, faceDir, location, deathTimer, 1);
     aP.intangible = true;
     return aP;
 }