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


Java TweenCallback类代码示例

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


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

示例1: leaveScreen

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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: show

import aurelienribon.tweenengine.TweenCallback; //导入依赖的package包/类
@Override
public void show() {
    tweenManager = new TweenManager();
    Tween.registerAccessor(Sprite.class, new SpriteAccessor());

    splash = new Sprite(new Texture(Gdx.files.internal("inferno_duck.png")));
    //splash.setPosition(Gdx.graphics.getWidth()/2 - splash.getWidth() / 2, Gdx.graphics.getHeight()/2 - splash.getHeight() /2);

    Tween.set(splash, SpriteAccessor.ALPHA).target(0).start(tweenManager);
    Tween.to(splash, SpriteAccessor.ALPHA, 2).target(1).repeatYoyo(1, 15f).setCallback(new TweenCallback() {
        @Override
        public void onEvent(int type, BaseTween<?> source) {
            game.setScreen(new MenuScreen(game));
        }
    }).start(tweenManager);
}
 
开发者ID:edwardszczepanski,项目名称:QuackHack,代码行数:17,代码来源:SplashScreen.java

示例3: alphaToAnimation

import aurelienribon.tweenengine.TweenCallback; //导入依赖的package包/类
public void alphaToAnimation(float alpha, float time, final GameObject.OnAnimationComplete onAnimationComplete) {
	final GameObject object = this;
    Tween.registerAccessor(ModelInstance.class, new GameObjectAccessor());
	if(alpha > 1) alpha = 1;
	if(alpha < 0) alpha = 0;
    
	context.tweenManager.killTarget(this, GameObjectAccessor.ALPHA);
	Tween.to(this, GameObjectAccessor.ALPHA, time)
		.target(alpha)
		.ease(TweenEquations.easeNone)
		.start(context.tweenManager)
		.setCallback(new TweenCallback() {
			@Override public void onEvent(int arg0, BaseTween<?> arg1) {
				if(onAnimationComplete != null) onAnimationComplete.run(object);
			}
		});
}
 
开发者ID:raphaelbruno,项目名称:ZombieInvadersVR,代码行数:18,代码来源:GameObject.java

示例4: onCreateStage

import aurelienribon.tweenengine.TweenCallback; //导入依赖的package包/类
@Override
protected void onCreateStage(Stage stage, int width, int height) {
    super.onCreateStage(stage, width, height);

    AssetManager.getMusic(Assets.Musics.TITLE_SCREEN).setVolume(0.6f);
    AssetManager.getMusic(Assets.Musics.TITLE_SCREEN).play();
    setBackgroundColor(Colors.BACKGROUND);
    logo = new Sprite(AssetManager.getTexture(Assets.Textures.RBCGJ));
    logo.setScale(0.1f);
    fx.fadeIn(2f);
    fx.setFadeColor(Color.BLACK);
    Tween.to(logo, SpriteTween.SCALE, 2f)
            .target(0.7f)
            .ease(TweenEquations.easeInOutCubic)
            .setCallbackTriggers(TweenCallback.COMPLETE)
            .setCallback(new TweenCallback() {
                @Override
                public void onEvent(int type, BaseTween<?> source) {
                    LoadingScreen.this.setScreen(new MenuScreen(game));
                }
            }).start(tweenManager);
}
 
开发者ID:bitbrain,项目名称:rbcgj-2016,代码行数:23,代码来源:LoadingScreen.java

示例5: moveLeft

import aurelienribon.tweenengine.TweenCallback; //导入依赖的package包/类
public void moveLeft() {
    if (canMoveLeft()) {
        movementSoundLooper.play();
    }
    if (isReadyToMove() && canMoveLeft()) {
        timer.reset();
        object.move(-GameConfig.CELL_SCALE, 0f);
        object.setOffset(GameConfig.CELL_SCALE, 0f);
        object.setDirection(Direction.LEFT);
        Tween.to(object, GameObjectTween.OFFSET_X, GameConfig.MOVEMENT_TIME)
                .setCallback(new TweenCallback() {
                    @Override
                    public void onEvent(int type, BaseTween<?> source) {
                        handler.enter(object, object.getLeft(), object.getTop());
                    }
                }).setCallbackTriggers(TweenCallback.COMPLETE)
                .ease(TweenEquations.easeNone)
                .target(0f).start(tweenManager);
        animateMovement(object);
    } else if (isReadyToMove()) {
        if (object.getDirection() != Direction.LEFT) {
            object.setDirection(Direction.LEFT);
            handler.enter(object, object.getLeft(), object.getTop());
        }
    }
}
 
开发者ID:bitbrain,项目名称:rbcgj-2016,代码行数:27,代码来源:GameObjectMover.java

示例6: moveRight

import aurelienribon.tweenengine.TweenCallback; //导入依赖的package包/类
public void moveRight() {
    if (canMoveRight()) {
        movementSoundLooper.play();
    }
    if (isReadyToMove() && canMoveRight()) {
        timer.reset();
        object.move(GameConfig.CELL_SCALE, 0f);
        object.setOffset(-GameConfig.CELL_SCALE, 0f);
        object.setDirection(Direction.RIGHT);
        Tween.to(object, GameObjectTween.OFFSET_X, GameConfig.MOVEMENT_TIME)
                .ease(TweenEquations.easeNone)
                .setCallback(new TweenCallback() {
                    @Override
                    public void onEvent(int type, BaseTween<?> source) {
                        handler.enter(object, object.getLeft(), object.getTop());
                    }
                }).setCallbackTriggers(TweenCallback.COMPLETE)
                .target(0f).start(tweenManager);
        animateMovement(object);
    } else if (isReadyToMove()) {
        if (object.getDirection() != Direction.RIGHT) {
            object.setDirection(Direction.RIGHT);
            handler.enter(object, object.getLeft(), object.getTop());
        }
    }
}
 
开发者ID:bitbrain,项目名称:rbcgj-2016,代码行数:27,代码来源:GameObjectMover.java

示例7: moveUp

import aurelienribon.tweenengine.TweenCallback; //导入依赖的package包/类
public void moveUp() {
    if (canMoveUp()) {
        movementSoundLooper.play();
    }
    if (isReadyToMove() && canMoveUp()) {
        timer.reset();
        object.move(0f, GameConfig.CELL_SCALE);
        object.setOffset(0f, -GameConfig.CELL_SCALE);
        object.setDirection(Direction.UP);
        Tween.to(object, GameObjectTween.OFFSET_Y, GameConfig.MOVEMENT_TIME)
                .ease(TweenEquations.easeNone)
                .setCallback(new TweenCallback() {
                    @Override
                    public void onEvent(int type, BaseTween<?> source) {
                        handler.enter(object, object.getLeft(), object.getTop());
                    }
                }).setCallbackTriggers(TweenCallback.COMPLETE)
                .target(0f).start(tweenManager);
        animateMovement(object);
    } else if (isReadyToMove()) {
        if (object.getDirection() != Direction.UP) {
            object.setDirection(Direction.UP);
            handler.enter(object, object.getLeft(), object.getTop());
        }
    }
}
 
开发者ID:bitbrain,项目名称:rbcgj-2016,代码行数:27,代码来源:GameObjectMover.java

示例8: moveDown

import aurelienribon.tweenengine.TweenCallback; //导入依赖的package包/类
public void moveDown() {
    if (canMoveDown()) {
        movementSoundLooper.play();
    }
    if (isReadyToMove() && canMoveDown()) {
        timer.reset();
        object.move(0f, -GameConfig.CELL_SCALE);
        object.setOffset(0f, GameConfig.CELL_SCALE);
        object.setDirection(Direction.DOWN);
        Tween.to(object, GameObjectTween.OFFSET_Y, GameConfig.MOVEMENT_TIME)
                .ease(TweenEquations.easeNone)
                .setCallback(new TweenCallback() {
                    @Override
                    public void onEvent(int type, BaseTween<?> source) {
                        handler.enter(object, object.getLeft(), object.getTop());
                    }
                }).setCallbackTriggers(TweenCallback.COMPLETE)
                .target(0f).start(tweenManager);
        animateMovement(object);
    } else if (isReadyToMove()) {
        if (object.getDirection() != Direction.DOWN) {
            object.setDirection(Direction.DOWN);
            handler.enter(object, object.getLeft(), object.getTop());
        }
    }
}
 
开发者ID:bitbrain,项目名称:rbcgj-2016,代码行数:27,代码来源:GameObjectMover.java

示例9: leaveScreen

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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

示例10: leaveScreen

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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

示例11: leaveAnimation

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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

示例12: leaveScreen

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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

示例13: leaveScreen

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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

示例14: leaveScreen

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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

示例15: leaveAnimation

import aurelienribon.tweenengine.TweenCallback; //导入依赖的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


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