コード例 #1
0
        void SetExplode(Explode boom, Vector3 position)
        {
            float   rad   = Helper.RandomMinMax(0.1f, 1);
            int     mc    = Helper.RandomMinMax(6, 10);
            float   speed = Helper.RandomMinMax(10, 50);
            Vector3 color = new Vector3(Helper.RandomMinMax(0.1f, 1),
                                        Helper.RandomMinMax(0.1f, 1), Helper.RandomMinMax(0.1f, 1));
            Vector3 lightcolor = new Vector3(Helper.RandomMinMax(0.01f, 0.2f),
                                             Helper.RandomMinMax(0.01f, 0.1f), Helper.RandomMinMax(0.01f, 0.2f));

            boom.Setup(color, lightcolor);
            boom.Spawn(position, rad, mc, speed, 0.1f, 2);
        }
コード例 #2
0
 public Swirl(Game game, Camera camera, GameLogic gameLogic) : base(game, camera)
 {
     LogicRef     = gameLogic;
     TheExplosion = new Explode(game, camera);
     FireTimer    = new Timer(game, 10);
 }