Ejemplo n.º 1
0
 public override void Kill(List <GameObject> gameObjects)
 {
     SpriteManager.RemoveSprite(sprite);
     gameObjects.Remove(this);
     player.Locked = false;
     beamsparks.Kill(gameObjects);
 }
Ejemplo n.º 2
0
 public override void Kill(List<GameObject> gameObjects) 
 {
     SpriteManager.RemoveSprite(sprite);
     gameObjects.Remove(this);
     if (selectedSpell != 1)
     {
         Emittor explosion = new Emittor(game, SpriteManager.AddSprite(Textures.Pixeltexture), .3f, Color.Tomato, Color.Yellow, Color.Orange,
             0.3f, 0.3f, sprite.Position, 3, (0), ((float)Math.PI * 2));
         gameObjects.Add(explosion);
     }
     if (selectedSpell == 1)
     {
         firetail.Kill(gameObjects);
     }
 }