示例#1
0
        //-------------------------------------------------------------------------
        void _initRoute(EbVector3 init_position, float init_direction)
        {
            mMassEntity = new MassEntity();
            RouteParaCurve route = new RouteParaCurve();

            route.create(init_position, init_direction, 0.4f, 20f);
            mMassEntity.setRoute(route);
        }
示例#2
0
        //---------------------------------------------------------------------
        void _initDieRoute()
        {
            mMassEntity = new MassEntity();
            RouteParaCurve route = new RouteParaCurve();

            route.create(mRenderFish.Position, 0, 0.6f, mRenderFish.jumpDistance());
            mMassEntity.setRoute(route);
        }
示例#3
0
        //-------------------------------------------------------------------------
        void _playFireAnimation()
        {
            mMassEntity = new MassEntity();
            RouteParaCurve route = new RouteParaCurve();

            route.create(mRenderTurret.getTurretPos(), mRenderTurret.getTurretAngle(), 0.1f, -13f);
            mMassEntity.setRoute(route);
            mIsFireAnimation = true;
            mTurretBlazeSprite.setActive(true);
            mTurretBlazeSprite.setPosition(mRenderTurret.getTurretPos());
            mTurretBlazeSprite.setDirection(mRenderTurret.getTurretAngle());
        }
示例#4
0
 //---------------------------------------------------------------------
 void _initDieRoute()
 {
     mMassEntity = new MassEntity();
     RouteParaCurve route = new RouteParaCurve();
     route.create(mRenderFish.Position, 0, 0.6f, mRenderFish.jumpDistance());
     mMassEntity.setRoute(route);
 }
示例#5
0
 //-------------------------------------------------------------------------
 void _initRoute(EbVector3 init_position, float init_direction)
 {
     mMassEntity = new MassEntity();
     RouteParaCurve route = new RouteParaCurve();
     route.create(init_position, init_direction, 0.4f, 20f);
     mMassEntity.setRoute(route);
 }
示例#6
0
 //-------------------------------------------------------------------------
 void _playFireAnimation()
 {
     mMassEntity = new MassEntity();
     RouteParaCurve route = new RouteParaCurve();
     route.create(mRenderTurret.getTurretPos(), mRenderTurret.getTurretAngle(), 0.1f, -13f);
     mMassEntity.setRoute(route);
     mIsFireAnimation = true;
     mTurretBlazeSprite.setActive(true);
     mTurretBlazeSprite.setPosition(mRenderTurret.getTurretPos());
     mTurretBlazeSprite.setDirection(mRenderTurret.getTurretAngle());
 }