Beispiel #1
0
            //----------------死亡处理过程----------------//


            public Bullet1(TextureManager _t, Vector2D direction, Vector2D position, int color = 5, float _speed = 100)
            {
                texturemanager = _t;
                Direction.X    = direction.X; Position.X = position.X;
                Direction.Y    = direction.Y; Position.Y = position.Y;
                bulletbody     = new BulletBodys.BigButterfly(_t, 3);                    //敌机子弹皮肤(miniRice)
                speed          = _speed;
                BulletData bulletdata = new BulletData(Position, Direction, Scale, speed);

                contorler   = new Entities.Controlors.DirectControler(bulletdata);    //选择直线控制器
                renderlevel = 0;

                //需要提前约定好
                MissTick    = 61;
                MissRefresh = 60;
            }
Beispiel #2
0
            //----------------死亡处理过程----------------//
            public Bullet1(TextureManager _t, Vector2D direction, Vector2D position, int color = 5,float _speed = 100)
            {
                texturemanager = _t;
                Direction.X = direction.X; Position.X = position.X;
                Direction.Y = direction.Y; Position.Y = position.Y;
                bulletbody = new BulletBodys.BigButterfly(_t, 3);                        //敌机子弹皮肤(miniRice)
                speed = _speed;
                BulletData bulletdata = new BulletData(Position, Direction, Scale, speed);
                contorler = new Entities.Controlors.DirectControler(bulletdata);      //选择直线控制器
                renderlevel = 0;

                //需要提前约定好
                MissTick = 61;
                MissRefresh = 60;
            }