当前位置: 首页>>代码示例>>Java>>正文


Java Interpolation.bounceOut方法代码示例

本文整理汇总了Java中com.badlogic.gdx.math.Interpolation.bounceOut方法的典型用法代码示例。如果您正苦于以下问题:Java Interpolation.bounceOut方法的具体用法?Java Interpolation.bounceOut怎么用?Java Interpolation.bounceOut使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.badlogic.gdx.math.Interpolation的用法示例。


在下文中一共展示了Interpolation.bounceOut方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getInterpolation

import com.badlogic.gdx.math.Interpolation; //导入方法依赖的package包/类
/**
 * 根据传入的值返回插值类型
 */
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;
    }
}
 
开发者ID:varFamily,项目名称:cocos-ui-libgdx,代码行数:73,代码来源:CocoStudioUIEditor.java

示例2: getSlideTransition

import com.badlogic.gdx.math.Interpolation; //导入方法依赖的package包/类
public SlideTransition getSlideTransition() {
    if (slideTransition == null)
        slideTransition = new SlideTransition(1, SlideTransition.DOWN, false, Interpolation.bounceOut,
                _engine.getManager(BaseSceneManager.class).getBatch());
    return slideTransition;
}
 
开发者ID:Rubentxu,项目名称:Entitas-Java,代码行数:7,代码来源:MatchOneGame.java

示例3: getSlideTransition

import com.badlogic.gdx.math.Interpolation; //导入方法依赖的package包/类
public SlideTransition getSlideTransition() {
    if (slideTransition == null)
        slideTransition = new SlideTransition(1, SlideTransition.DOWN, false, Interpolation.bounceOut, _engine.getManager(BaseSceneManager.class).getBatch());
    return slideTransition;
}
 
开发者ID:Rubentxu,项目名称:Entitas-Java,代码行数:6,代码来源:PongGame.java

示例4: getSlideTransition

import com.badlogic.gdx.math.Interpolation; //导入方法依赖的package包/类
public SlideTransition getSlideTransition() {
    if (slideTransition == null)
        slideTransition = new SlideTransition(1, SlideTransition.DOWN, false, Interpolation.bounceOut, _engine.getManager(SceneManagerGDX.class).getBatch());
    return slideTransition;
}
 
开发者ID:Rubentxu,项目名称:Entitas-Java,代码行数:6,代码来源:ExamplesGame.java


注:本文中的com.badlogic.gdx.math.Interpolation.bounceOut方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。