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


Java Timeline类代码示例

本文整理汇总了Java中aurelienribon.tweenengine.Timeline的典型用法代码示例。如果您正苦于以下问题:Java Timeline类的具体用法?Java Timeline怎么用?Java Timeline使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score, ScoreManager.CH4,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:MethaneLevel.java

示例2: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score,ScoreManager.LEVEL_5,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:LevelFive.java

示例3: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score,ScoreManager.LEVEL_3,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:LevelThree.java

示例4: leaveAnimation

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveAnimation(final Screen setScreen){

        //setup a parallel event
        Timeline.createParallel().beginParallel()
                .push(Tween.to(heading, ActorAccessor.Y, 2f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level1, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level2, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level3, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level4, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level5, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level6, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l1, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l2, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l3, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l4, ActorAccessor.Y, .75f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l5, ActorAccessor.Y, .75f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l6, ActorAccessor.Y, .75f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(more, ActorAccessor.Y, .5f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l7, ActorAccessor.Y, .5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
            @Override
            public void onEvent(int type, BaseTween<?> source) {
                ((Game)Gdx.app.getApplicationListener()).setScreen(setScreen);
            }
        }).start(tweenManager);

    }
 
开发者ID:msk610,项目名称:Chemtris,代码行数:27,代码来源:Levels.java

示例5: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score,ScoreManager.LEVEL_4,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:LevelFour.java

示例6: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score, ScoreManager.H2O,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:WaterLevel.java

示例7: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score,ScoreManager.LEVEL_1,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:LevelOne.java

示例8: leaveAnimation

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveAnimation(final Screen setScreen){

        //setup a parallel event
        Timeline.createParallel().beginParallel()
                .push(Tween.to(heading, ActorAccessor.Y, 2f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level1, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l1, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(level2, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
                .push(Tween.to(l2, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
                .end().setCallback(new TweenCallback() {
            @Override
            public void onEvent(int type, BaseTween<?> source) {
                ((Game)Gdx.app.getApplicationListener()).setScreen(setScreen);
            }
        }).start(tweenManager);

    }
 
开发者ID:msk610,项目名称:Chemtris,代码行数:18,代码来源:ElementLevels.java

示例9: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score,ScoreManager.LEVEL_6,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:LevelSix.java

示例10: leaveScreen

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void leaveScreen(){
    Timeline.createParallel().beginParallel()
            .push(Tween.to(right, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(left, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(up, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(down, ActorAccessor.Y, 1f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(descend, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rx, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(ry, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(rz, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(pause, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(cam, ActorAccessor.Y, 1.25f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(quit, ActorAccessor.Y, 1.15f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(question, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(scoreLabel, ActorAccessor.Y, 1.5f).target(-Gdx.graphics.getHeight()))
            .push(Tween.to(textLabel, ActorAccessor.Y, 2.5f).target(-Gdx.graphics.getHeight())).end().setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            ((Game)Gdx.app.getApplicationListener()).setScreen(new GameOver(score,ScoreManager.LEVEL_2,done));
        }
    }).start(tweenManager);
}
 
开发者ID:msk610,项目名称:Chemtris,代码行数:23,代码来源:LevelTwo.java

示例11: startScreenShake

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void startScreenShake() {
    if (allowScreenShake) {
        Gdx.input.vibrate(150);

        Timeline.createSequence()
                .push(Tween.set(camera, CameraAccessor.POSITION_XY)
                      .target(400, 240))
                .push(Tween.to(camera, CameraAccessor.POSITION_XY, 0.035f)
                      .targetRelative(8, 0)
                      .ease(Quad.IN))
                .push(Tween.to(camera, CameraAccessor.POSITION_XY, 0.035f)
                      .targetRelative(-8, 0)
                      .ease(Quad.IN))
                .push(Tween.to(camera, CameraAccessor.POSITION_XY, 0.0175f)
                        .target(400, 240)
                        .ease(Quad.IN))
                .repeatYoyo(2, 0)
                .start(game.tweenManager);
    }
}
 
开发者ID:justinmeister,项目名称:PongWithLibgdx,代码行数:21,代码来源:PongBoard.java

示例12: beginOutroTween

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
private void beginOutroTween() {
    TweenCallback callBack = new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            game.setScreen(new WinScreen(game));
            dispose();
        }
    };
    Timeline.createSequence()
            .pushPause(1.0f)
            .push(Tween.to(camera, CameraAccessor.POSITION_X, 2f)
                    .targetRelative(-800)
                    .ease(Back.IN))
            .setCallback(callBack)
            .start(game.tweenManager);

}
 
开发者ID:justinmeister,项目名称:PongWithLibgdx,代码行数:18,代码来源:PongBoard.java

示例13: onScriptStart

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
@Override
public void onScriptStart(ScriptRunner runner) {
  if (runner == robotScriptRunner) {
    level.reset();

    RTSCameraController camera = level.get3DCameraController();
    camera.setEnabled(true);

    float targetZoom = 5;
    float targetRotation = -5.8463125f;
    float targetTilt = 1.0542735f;

    Timeline.createSequence().beginParallel()
            .push(Tween.to(camera, CameraAccessor.CENTER, 1).target(camera.getCenter().x, camera.getCenter().y, camera.getCenter().z))
            .push(Tween.to(camera, CameraAccessor.ROTATION_TILT_ZOOM, 1).target(targetZoom, targetRotation, targetTilt))
            .end().start(level.uiTweenManager);
  }
}
 
开发者ID:macbury,项目名称:BotLogic,代码行数:19,代码来源:GameController.java

示例14: getTimeline

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
@Override
public Timeline getTimeline(EntityPlayer player, ModelBiped model) {
	Timeline timeline = Timeline.createSequence()
		.beginParallel()
			.push(Tween.to(model, ModelAccessor.RIGHT_ARM_X, 400F).target(-pi / 2))
			.push(Tween.to(model, ModelAccessor.LEFT_ARM_X, 400F).target(-pi / 2))
			.push(Tween.to(model, ModelAccessor.RIGHT_ARM_Y, 400F).target(-pi / 4 + 0.25F))
			.push(Tween.to(model, ModelAccessor.LEFT_ARM_Y, 400F).target(pi / 4 - 0.25F))
		.end()
		.beginParallel()
			.push(Tween.to(model, ModelAccessor.RIGHT_ARM_Y, 100F).target(-pi / 4 + 0.4F).repeatYoyo(11, 0F))
			.push(Tween.to(model, ModelAccessor.LEFT_ARM_Y, 100F).target(pi / 4 - 0.4F).repeatYoyo(11, 0F))
		.end()
		.beginParallel()
			.push(Tween.to(model, ModelAccessor.RIGHT_ARM_X, 400F).target(0F))
			.push(Tween.to(model, ModelAccessor.LEFT_ARM_X, 400F).target(0F))
			.push(Tween.to(model, ModelAccessor.RIGHT_ARM_Y, 400F).target(0F))
			.push(Tween.to(model, ModelAccessor.LEFT_ARM_Y, 400F).target(0F))
		.end();
	
	return timeline;
}
 
开发者ID:Vazkii,项目名称:Emotes,代码行数:23,代码来源:EmoteClap.java

示例15: getTimeline

import aurelienribon.tweenengine.Timeline; //导入依赖的package包/类
@Override
public Timeline getTimeline(EntityPlayer player, ModelBiped model) {
	Timeline timeline = Timeline.createSequence()
		.beginParallel()
			.push(Tween.to(model, ModelAccessor.LEFT_ARM_Z, 2000F).target(-pi / 2))
			.push(Tween.to(model, ModelAccessor.RIGHT_ARM_Z, 2000F).target(pi / 2))
			.push(Tween.to(model, ModelAccessor.LEFT_LEG_Z, 2000F).target(-pi / 2))
			.push(Tween.to(model, ModelAccessor.RIGHT_LEG_Z, 2000F).target(pi / 2))
		.end()
		.pushPause(2000F)
		.beginParallel()
			.push(Tween.to(model, ModelAccessor.LEFT_ARM_Z, 500F).target(0F))
			.push(Tween.to(model, ModelAccessor.RIGHT_ARM_Z, 500F).target(0F))
			.push(Tween.to(model, ModelAccessor.LEFT_LEG_Z, 500F).target(0F))
			.push(Tween.to(model, ModelAccessor.RIGHT_LEG_Z, 500F).target(0F))
		.end();

	return timeline;
}
 
开发者ID:Vazkii,项目名称:Emotes,代码行数:20,代码来源:EmoteLevitate.java


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