Example #1
0
        private void AddDestroySprite(LinkedList <Sprite> list, Vector2 positionInWorld, Asf image, SoundEffect sound)
        {
            if (image != null)
            {
                var sprite = new Sprite(positionInWorld,
                                        0f,
                                        image);
                sprite.PlayFrames(sprite.FrameCountsPerDirection);
                list.AddLast(sprite);
            }
            SoundManager.Play3DSoundOnece(sound,
                                          positionInWorld - Globals.ListenerPosition);

            UseMagic(BelongMagic.ExplodeMagicFile);
        }