예제 #1
0
        private void PopButton_Activated()
        {
            var shard = new Shard(Width / 2, Height / 2, Width / 7, Width / 7);

            AddChild(shard);

            shard.Down += () =>
            {
                shard.Die();
            };
        }
예제 #2
0
        //protected override async void Shine()
        //{
        //    Shard shard = new Shard(Radius, Radius, 2 * Radius, 2 * Radius, CreateColor(0, 0, 0));
        //    AddChild(shard);
        //    await Task.Delay(_animationMs / 2);
        //    shard.Die();
        //}

        public async Task Swallow()
        {
            foreach (OrbitingStarParticle star in _listOfStarParticles)
            {
                star.SlowPulse();
            }
            Shard shard = new Shard(Radius, Radius, Radius, Radius);

            AddChild(shard);
            await Task.Delay(_animationMs / 2);

            shard.Die();
        }