예제 #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());
 }