コード例 #1
0
        protected override void Update(int t)
        {
            var world = _.World;

            if (t % 450 != 0)
            {
                return;
            }

            var list = new List <XY> ();

            for (int i = 0, n = _.Difficulty.Choose(30, 30, 30, 30); i < n; i++)
            {
                list.Add(Danmaku.FarFrom(list, () => _.Random.Point(World.Box), 3));
            }

            foreach (var p in list)
            {
                world.Spawn(
                    new GrenadeBullet(
                        _p,
                        (p - _p) / 150,
                        Color.Red,
                        Color.Red,
                        5f,
                        150
                        )
                    );
            }
        }