當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。