Java Code Examples for com.badlogic.gdx.math.Interpolation#bounceOut()

The following examples show how to use com.badlogic.gdx.math.Interpolation#bounceOut() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CocoStudioUIEditor.java    From cocos-ui-libgdx with Apache License 2.0 4 votes vote down vote up
/**
 * 根据传入的值返回插值类型
 */
public Interpolation getInterpolation(int tweenType) {
    switch (tweenType) {
        case 0:
            return Interpolation.linear;
        case 1:
            return Interpolation.sineIn;
        case 2:
            return Interpolation.sineOut;
        case 3:
            return Interpolation.sine;
        case 4:
            return Interpolation.linear; //不支持Quad_EaseIn
        case 5:
            return Interpolation.linear; //不支持Quad_EaseOut
        case 6:
            return Interpolation.linear; //不支持Quad_EaseInOut
        case 7:
            return Interpolation.linear; //不支持Cubic_EaseIn
        case 8:
            return Interpolation.linear; //不支持Cubic_EaseOut
        case 9:
            return Interpolation.linear; //不支持Cubic_EaseInOut
        case 10:
            return Interpolation.linear; //不支持Quart_EaseIn
        case 11:
            return Interpolation.linear; //不支持Quart_EaseOut
        case 12:
            return Interpolation.linear; //不支持Quart_EaseInOut
        case 13:
            return Interpolation.linear; //不支持Quint_EaseIn
        case 14:
            return Interpolation.linear; //不支持Quint_EaseOut
        case 15:
            return Interpolation.linear; //不支持Quint_EaseInOut
        case 16:
            return Interpolation.exp10In;
        case 17:
            return Interpolation.exp10Out;
        case 18:
            return Interpolation.exp10;
        case 19:
            return Interpolation.circleIn;
        case 20:
            return Interpolation.circleOut;
        case 21:
            return Interpolation.circle;
        case 22:
            return Interpolation.elasticIn;
        case 23:
            return Interpolation.elasticOut;
        case 24:
            return Interpolation.elastic;
        case 25:
            return Interpolation.linear; //不支持Back_EaseIn
        case 26:
            return Interpolation.linear; //不支持Back_EaseOut
        case 27:
            return Interpolation.linear; //不支持Back_EaseInOut
        case 28:
            return Interpolation.bounceIn;
        case 29:
            return Interpolation.bounceOut;
        case 30:
            return Interpolation.bounce;

        default:
            return Interpolation.linear;
    }
}
 
Example 2
Source File: MatchOneGame.java    From Entitas-Java with MIT License 4 votes vote down vote up
public SlideTransition getSlideTransition() {
    if (slideTransition == null)
        slideTransition = new SlideTransition(1, SlideTransition.DOWN, false, Interpolation.bounceOut,
                _engine.getManager(BaseSceneManager.class).getBatch());
    return slideTransition;
}
 
Example 3
Source File: PongGame.java    From Entitas-Java with MIT License 4 votes vote down vote up
public SlideTransition getSlideTransition() {
    if (slideTransition == null)
        slideTransition = new SlideTransition(1, SlideTransition.DOWN, false, Interpolation.bounceOut, _engine.getManager(BaseSceneManager.class).getBatch());
    return slideTransition;
}
 
Example 4
Source File: ExamplesGame.java    From Entitas-Java with MIT License 4 votes vote down vote up
public SlideTransition getSlideTransition() {
    if (slideTransition == null)
        slideTransition = new SlideTransition(1, SlideTransition.DOWN, false, Interpolation.bounceOut, _engine.getManager(SceneManagerGDX.class).getBatch());
    return slideTransition;
}