本文整理汇总了Java中aurelienribon.tweenengine.BaseTween类的典型用法代码示例。如果您正苦于以下问题:Java BaseTween类的具体用法?Java BaseTween怎么用?Java BaseTween使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BaseTween类属于aurelienribon.tweenengine包,在下文中一共展示了BaseTween类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: leaveScreen
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}
示例2: show
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}
示例3: onEvent
import aurelienribon.tweenengine.BaseTween; //导入依赖的package包/类
@Override
public void onEvent(int type, BaseTween<?> source)
{
transitioning = false;
pauseBoss.getCurrent().resetData();
MapVO tutorialVO = new MapVO(); // Create a MapVO based on the Tutorial Map
tutorialVO.mdata = ";;0,6,2:0,12,4:0,3,8;0,12,0:0,9,1:0,1,3:0,14,3:0,4,4:0,9,5:0,14,7:0,1,8:0,4,8:0,10,8:0,14,10;0,6,0:0,13,0:0,0,1:0,12,1:0,2,2:0,3,2:0,3,3:0,4,3:0,9,4:0,12,4:0,2,5:0,3,5:0,7,5:0,8,5:0,12,5:0,1,6:0,2,6:0,8,6:0,13,6:0,15,6:0,0,7:0,1,7:0,6,7:0,12,7:0,13,7:0,0,8:0,1,8:0,6,8:0,12,8:0,14,8:0,16,8:0,0,9:0,1,9:0,14,9:0,15,9:0,16,9:0,0,10:0,1,10:0,9,10:0,10,10:0,11,10:0,12,10:0,13,10:0,14,10:0,15,10:0,16,10:0,17,10;0,0,0:0,1,0:0,2,0:0,3,0:0,4,0:0,7,0:0,8,0:0,9,0:0,10,0:0,11,0:0,12,0:0,13,0:0,14,0:0,15,0:0,16,0:0,17,0:0,0,1:0,1,1:0,2,1:0,3,1:0,4,1:0,7,1:0,8,1:0,9,1:0,10,1:0,11,1:0,12,1:0,13,1:0,14,1:0,15,1:0,16,1:0,17,1:0,2,2:0,3,2:0,4,2:0,5,2:0,8,2:0,9,2:0,10,2:0,11,2:0,12,2:0,13,2:0,14,2:0,15,2:0,16,2:0,17,2:0,1,3:0,2,3:0,3,3:0,4,3:0,5,3:0,8,3:0,9,3:0,10,3:0,11,3:0,13,3:0,14,3:0,15,3:0,16,3:0,17,3:0,4,4:0,5,4:0,8,4:0,9,4:0,10,4:0,14,4:0,15,4:0,16,4:0,17,4:0,4,5:0,5,5:0,8,5:0,14,5:0,15,5:0,16,5:0,17,5:0,4,6:0,5,6:0,15,6:0,16,6:0,17,6:0,5,7:0,6,7:0,7,7:0,8,7:0,10,7:0,11,7:0,14,7:0,15,7:0,16,7:0,17,7:0,5,8:0,6,8:0,7,8:0,8,8:0,9,8:0,10,8:0,14,8:0,15,8:0,16,8:0,17,8:0,6,9:0,7,9:0,8,9:0,9,9:0,10,9:0,14,9:0,15,9:0,16,9:0,17,9:0,8,10:0,9,10:0,10,10:0,14,10:0,15,10:0,16,10:0,17,10;0,14,0:0,15,0:0,16,0:0,17,0:0,14,1:0,15,1:0,16,1:0,17,1:0,15,2:0,16,2:0,17,2;20,0,0,7,4,3,7:20,1,0,7,4,1,7:20,2,0,7,4,1,7:20,3,0,7,4,1,7:20,4,0,7,4,1,7:20,5,0,7,4,1,7:20,6,0,7,4,1,7:20,7,0,7,4,1,7:20,8,0,7,4,1,7:20,9,0,7,4,1,7:20,10,0,7,4,1,7:20,11,0,7,4,1,7:20,12,0,7,4,1,7:20,13,0,7,4,1,7:20,14,0,7,4,1,7:20,15,0,7,4,1,7:20,16,0,7,4,1,7:20,17,0,7,6,1,7:20,0,1,7,7,7,7:20,1,1,7,7,7,7:20,2,1,7,7,7,7:20,3,1,7,7,7,7:20,4,1,7,7,7,7:20,5,1,7,7,7,7:20,6,1,7,7,7,7:20,7,1,7,7,7,7:20,8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,7,10,6,1,7,7:20,9,10,7,7,4,3:20,10,10,5,7,7,7:20,11,10,1,5,7,6:20,12,10,0,0,3,4;0,0,0:0,1,0:0,2,0:0,3,0:0,4,0:0,5,0:21,6,0,7,7,6,1,3:21,7,0,7,5,7,7,3:21,8,0,7,6,3,7,3:21,9,0,7,7,5,7,3:21,10,0,4,3,7,7,3:0,11,0:0,12,0:0,13,0:0,14,0:0,15,0:0,16,0:0,17,0:0,0,1:0,1,1:0,2,1:0,3,1:0,4,1:0,5,1:21,6,1,7,7,4,3,3:21,7,1,5,7,7,7,3:21,8,1,3,7,7,6,3:21,9,1,7,7,7,5,3:21,10,1,6,1,7,7,3:0,11,1:0,12,1:0,13,1:0,14,1:0,15,1:0,16,1:0,17,1:20,4,2,3,4,0,0:20,5,2,7,6,1,5:20,6,2,7,7,5,7:20,7,2,4,3,7,7:20,9,2,7,7,6,1:20,10,2,7,5,7,7:20,11,2,5,4,3,7:20,12,2,0,0,1,6:20,5,3,1,7,6,0:20,6,3,1,7,7,4:20,7,3,0,1,7,4:20,9,3,1,7,4,0:20,10,3,1,7,7,4:20,11,3,0,3,7,4:20,12,9,7,4,0,3:20,13,9,7,4,1,7:20,14,9,7,4,1,7:22,14,9,1:20,15,9,7,4,1,7:20,16,9,6,0,1,7:20,11,10,1,6,0,0:20,12,10,3,7,5,4:20,13,10,7,7,7,5:20,14,10,7,7,7,7:22,14,10,5:20,15,10,5,7,7,7:20,16,10,1,5,7,6:20,17,10,3,6,3,4;0,0,0:0,1,0:0,2,0:0,3,0:0,4,0:0,5,0:0,6,0:0,7,0:0,8,0:0,9,0:0,10,0:0,11,0:0,12,0:21,13,0,7,7,6,1,3:21,14,0,7,7,7,7,3:22,14,0,5:21,15,0,4,3,7,7,3:0,16,0:0,17,0:0,0,1:0,1,1:0,2,1:0,3,1:0,4,1:0,5,1:0,6,1:0,7,1:0,8,1:0,9,1:0,10,1:0,11,1:0,12,1:21,13,1,7,7,4,3,3:21,14,1,7,7,7,7,3:22,14,1,5:21,15,1,6,1,7,7,3:0,16,1:0,17,1:20,11,2,3,4,0,0:20,12,2,7,6,1,5:20,13,2,7,7,5,7:20,14,2,7,7,7,7:22,14,2,5:20,15,2,7,5,7,7:20,16,2,5,4,3,7:20,17,2,3,6,1,6:20,12,3,1,7,6,0:20,13,3,1,7,7,4:20,14,3,1,7,7,4:22,14,3,4:20,15,3,1,7,7,4:20,16,3,0,3,7,4;12,8,8,0,1:0,0,10:0,1,10:0,2,10:0,3,10:0,4,10:0,5,10:0,6,10:0,7,10:11,8,10,0,1:0,9,10:0,10,10:0,11,10:0,12,10:0,13,10:0,14,10:0,15,10:0,16,10:0,17,10;0,0,10:0,1,10:0,2,10:0,3,10:0,4,10:0,5,10:0,6,10:0,7,10:0,10,10:0,11,10:0,12,10:0,13,10:0,14,10:0,15,10:0,16,10:0,17,10;0,7,0:0,10,0:0,7,1:0,10,1:0,7,2:12,8,2,1,2:12,9,2,1,2:0,10,2:0,7,3:0,10,3:0,7,4:0,10,4:0,7,5:0,8,5:11,9,5,0,2:0,10,5;0,0,8:0,1,8:0,2,8:0,3,8:0,4,8:0,5,8:0,6,8:10,8,8,1:0,10,8:0,11,8:0,12,8:0,13,8:0,14,8:0,15,8:0,16,8:0,17,8:0,6,9:10,8,9,5:0,10,9:0,6,10:10,8,10,5:0,10,10;0,6,0:10,8,0,5:0,10,0:0,6,1:10,8,1,5:0,10,1:0,6,2:12,7,2,1,4:10,8,2,5:12,9,2,2,3:0,10,2:0,6,3:10,8,3,5:0,10,3:0,6,4:10,8,4,5:0,10,4:0,6,5:11,7,5,0,3:10,8,5,14:11,9,5,0,4:0,10,5;0,0,0:0,1,0:0,2,0:0,3,0:0,4,0:0,5,0:0,12,0:0,13,0:0,14,0:0,15,0:0,16,0:0,17,0:0,0,1:0,1,1:0,2,1:0,3,1:0,4,1:14,8,1:14,9,1:0,13,1:0,14,1:0,15,1:0,16,1:0,17,1:0,0,2:0,1,2:0,2,2:0,3,2:0,4,2:0,8,2:0,9,2:0,13,2:0,14,2:0,15,2:0,16,2:0,17,2:0,0,3:0,1,3:0,2,3:0,3,3:0,7,3:0,8,3:0,9,3:0,10,3:0,14,3:0,15,3:0,16,3:0,17,3:0,0,4:0,1,4:0,2,4:0,3,4:0,7,4:0,8,4:0,9,4:0,10,4:0,14,4:0,15,4:0,16,4:0,17,4:0,0,5:0,1,5:0,2,5:0,6,5:0,7,5:0,8,5:0,9,5:0,10,5:0,11,5:0,15,5:0,16,5:0,17,5:0,0,6:0,1,6:0,2,6:0,6,6:0,7,6:0,8,6:0,9,6:0,10,6:0,11,6:0,15,6:0,16,6:0,17,6:0,0,7:0,1,7:0,5,7:0,6,7:0,7,7:0,8,7:0,9,7:0,10,7:0,11,7:0,12,7:0,16,7:0,17,7:0,0,8:0,1,8:0,5,8:0,6,8:0,7,8:0,8,8:0,9,8:0,10,8:0,11,8:0,12,8:0,16,8:0,17,8:0,0,9:0,4,9:0,5,9:0,6,9:0,7,9:0,8,9:0,9,9:0,10,9:0,11,9:0,12,9:0,13,9:0,17,9:0,0,10:0,4,10:0,5,10:0,6,10:0,7,10:0,8,10:0,9,10:0,10,10:0,11,10:0,12,10:0,13,10:0,17,10";
tutorialVO.maxPlayers = 8;
tutorialVO.minPlayers = 1;
tutorialVO.mid = 0;
tutorialVO.mname = "Tutorial";
tutorialVO.msize = 18;
tutorialVO.uname = "CGC Dev";
tutorialVO.mrating = 5.0f;
ChaseApp.mapSelect.createMapCacheFromPreset();
myApp.setScreen(new ChainGame(myApp, ChaseApp.characterSelect.getNumPlayers(),
tutorialVO, ChaseApp.mapSelect.getMapCache(), transition, true));
}
示例4: onEvent
import aurelienribon.tweenengine.BaseTween; //导入依赖的package包/类
@Override
public void onEvent(int type, BaseTween<?> source)
{
transitioning = false;
CGCWorld.clearWorld();
world = new World(new Vector2(0, 0), true);
lh.createLayers();
maps.clear();
Array<Player> newPlayerArray = new Array<Player>();
for (int i = 0; i < CGCWorld.numPlayers; i++)
{
CGCWorld.players.get(i).setInBossFight(true);
newPlayerArray.add(CGCWorld.players.get(i));
}
myApp.setScreen(new BossFight(myApp, CGCWorld.getNumPlayers(), newPlayerArray, transition, tutorial));
}
示例5: onEvent
import aurelienribon.tweenengine.BaseTween; //导入依赖的package包/类
public void onEvent(int type, BaseTween<?> source)
{
transitioning = false;
input.getBoss().getCurrent().resetData();
MapVO tutorialVO = new MapVO(); // Create a MapVO based on the Tutorial Map
tutorialVO.mdata = ";;0,6,2:0,12,4:0,3,8;0,12,0:0,9,1:0,1,3:0,14,3:0,4,4:0,9,5:0,14,7:0,1,8:0,4,8:0,10,8:0,14,10;0,6,0:0,13,0:0,0,1:0,12,1:0,2,2:0,3,2:0,3,3:0,4,3:0,9,4:0,12,4:0,2,5:0,3,5:0,7,5:0,8,5:0,12,5:0,1,6:0,2,6:0,8,6:0,13,6:0,15,6:0,0,7:0,1,7:0,6,7:0,12,7:0,13,7:0,0,8:0,1,8:0,6,8:0,12,8:0,14,8:0,16,8:0,0,9:0,1,9:0,14,9:0,15,9:0,16,9:0,0,10:0,1,10:0,9,10:0,10,10:0,11,10:0,12,10:0,13,10:0,14,10:0,15,10:0,16,10:0,17,10;0,0,0:0,1,0:0,2,0:0,3,0:0,4,0:0,7,0:0,8,0:0,9,0:0,10,0:0,11,0:0,12,0:0,13,0:0,14,0:0,15,0:0,16,0:0,17,0:0,0,1:0,1,1:0,2,1:0,3,1:0,4,1:0,7,1:0,8,1:0,9,1:0,10,1:0,11,1:0,12,1:0,13,1:0,14,1:0,15,1:0,16,1:0,17,1:0,2,2:0,3,2:0,4,2:0,5,2:0,8,2:0,9,2:0,10,2:0,11,2:0,12,2:0,13,2:0,14,2:0,15,2:0,16,2:0,17,2:0,1,3:0,2,3:0,3,3:0,4,3:0,5,3:0,8,3:0,9,3:0,10,3:0,11,3:0,13,3:0,14,3:0,15,3:0,16,3:0,17,3:0,4,4:0,5,4:0,8,4:0,9,4:0,10,4:0,14,4:0,15,4:0,16,4:0,17,4:0,4,5:0,5,5:0,8,5:0,14,5:0,15,5:0,16,5:0,17,5:0,4,6:0,5,6:0,15,6:0,16,6:0,17,6:0,5,7:0,6,7:0,7,7:0,8,7:0,10,7:0,11,7:0,14,7:0,15,7:0,16,7:0,17,7:0,5,8:0,6,8:0,7,8:0,8,8:0,9,8:0,10,8:0,14,8:0,15,8:0,16,8:0,17,8:0,6,9:0,7,9:0,8,9:0,9,9:0,10,9:0,14,9:0,15,9:0,16,9:0,17,9:0,8,10:0,9,10:0,10,10:0,14,10:0,15,10:0,16,10:0,17,10;0,14,0:0,15,0:0,16,0:0,17,0:0,14,1:0,15,1:0,16,1:0,17,1:0,15,2:0,16,2:0,17,2;20,0,0,7,4,3,7:20,1,0,7,4,1,7:20,2,0,7,4,1,7:20,3,0,7,4,1,7:20,4,0,7,4,1,7:20,5,0,7,4,1,7:20,6,0,7,4,1,7:20,7,0,7,4,1,7:20,8,0,7,4,1,7:20,9,0,7,4,1,7:20,10,0,7,4,1,7:20,11,0,7,4,1,7:20,12,0,7,4,1,7:20,13,0,7,4,1,7:20,14,0,7,4,1,7:20,15,0,7,4,1,7:20,16,0,7,4,1,7:20,17,0,7,6,1,7:20,0,1,7,7,7,7:20,1,1,7,7,7,7:20,2,1,7,7,7,7:20,3,1,7,7,7,7:20,4,1,7,7,7,7:20,5,1,7,7,7,7:20,6,1,7,7,7,7:20,7,1,7,7,7,7:20,8,1,7,7,7,7:20,9,1,7,7,7,7:20,10,1,7,7,7,7:20,11,1,7,7,7,7:20,12,1,7,7,7,7:20,13,1,7,7,7,7:20,14,1,7,7,7,7:20,15,1,7,7,7,7:20,16,1,7,7,7,7:20,17,1,7,7,7,7:20,0,2,7,7,7,7:20,1,2,7,7,7,7:20,2,2,7,7,7,7:20,3,2,7,7,7,7:20,4,2,7,7,7,7:20,5,2,7,7,7,7:20,6,2,7,7,7,7:20,7,2,7,7,7,7:20,8,2,7,7,7,7:20,9,2,7,7,7,7:20,10,2,7,7,7,7:20,11,2,7,7,7,7:20,12,2,7,7,7,7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,7,7,5,3:21,10,1,6,1,7,7,3:0,11,1:0,12,1:0,13,1:0,14,1:0,15,1:0,16,1:0,17,1:20,4,2,3,4,0,0:20,5,2,7,6,1,5:20,6,2,7,7,5,7:20,7,2,4,3,7,7:20,9,2,7,7,6,1:20,10,2,7,5,7,7:20,11,2,5,4,3,7:20,12,2,0,0,1,6:20,5,3,1,7,6,0:20,6,3,1,7,7,4:20,7,3,0,1,7,4:20,9,3,1,7,4,0:20,10,3,1,7,7,4:20,11,3,0,3,7,4:20,12,9,7,4,0,3:20,13,9,7,4,1,7:20,14,9,7,4,1,7:22,14,9,1:20,15,9,7,4,1,7:20,16,9,6,0,1,7:20,11,10,1,6,0,0:20,12,10,3,7,5,4:20,13,10,7,7,7,5:20,14,10,7,7,7,7:22,14,10,5:20,15,10,5,7,7,7:20,16,10,1,5,7,6:20,17,10,3,6,3,4;0,0,0:0,1,0:0,2,0:0,3,0:0,4,0:0,5,0:0,6,0:0,7,0:0,8,0:0,9,0:0,10,0:0,11,0:0,12,0:21,13,0,7,7,6,1,3:21,14,0,7,7,7,7,3:22,14,0,5:21,15,0,4,3,7,7,3:0,16,0:0,17,0:0,0,1:0,1,1:0,2,1:0,3,1:0,4,1:0,5,1:0,6,1:0,7,1:0,8,1:0,9,1:0,10,1:0,11,1:0,12,1:21,13,1,7,7,4,3,3:21,14,1,7,7,7,7,3:22,14,1,5:21,15,1,6,1,7,7,3:0,16,1:0,17,1:20,11,2,3,4,0,0:20,12,2,7,6,1,5:20,13,2,7,7,5,7:20,14,2,7,7,7,7:22,14,2,5:20,15,2,7,5,7,7:20,16,2,5,4,3,7:20,17,2,3,6,1,6:20,12,3,1,7,6,0:20,13,3,1,7,7,4:20,14,3,1,7,7,4:22,14,3,4:20,15,3,1,7,7,4:20,16,3,0,3,7,4;12,8,8,0,1:0,0,10:0,1,10:0,2,10:0,3,10:0,4,10:0,5,10:0,6,10:0,7,10:11,8,10,0,1:0,9,10:0,10,10:0,11,10:0,12,10:0,13,10:0,14,10:0,15,10:0,16,10:0,17,10;0,0,10:0,1,10:0,2,10:0,3,10:0,4,10:0,5,10:0,6,10:0,7,10:0,10,10:0,11,10:0,12,10:0,13,10:0,14,10:0,15,10:0,16,10:0,17,10;0,7,0:0,10,0:0,7,1:0,10,1:0,7,2:12,8,2,1,2:12,9,2,1,2:0,10,2:0,7,3:0,10,3:0,7,4:0,10,4:0,7,5:0,8,5:11,9,5,0,2:0,10,5;0,0,8:0,1,8:0,2,8:0,3,8:0,4,8:0,5,8:0,6,8:10,8,8,1:0,10,8:0,11,8:0,12,8:0,13,8:0,14,8:0,15,8:0,16,8:0,17,8:0,6,9:10,8,9,5:0,10,9:0,6,10:10,8,10,5:0,10,10;0,6,0:10,8,0,5:0,10,0:0,6,1:10,8,1,5:0,10,1:0,6,2:12,7,2,1,4:10,8,2,5:12,9,2,2,3:0,10,2:0,6,3:10,8,3,5:0,10,3:0,6,4:10,8,4,5:0,10,4:0,6,5:11,7,5,0,3:10,8,5,14:11,9,5,0,4:0,10,5;0,0,0:0,1,0:0,2,0:0,3,0:0,4,0:0,5,0:0,12,0:0,13,0:0,14,0:0,15,0:0,16,0:0,17,0:0,0,1:0,1,1:0,2,1:0,3,1:0,4,1:14,8,1:14,9,1:0,13,1:0,14,1:0,15,1:0,16,1:0,17,1:0,0,2:0,1,2:0,2,2:0,3,2:0,4,2:0,8,2:0,9,2:0,13,2:0,14,2:0,15,2:0,16,2:0,17,2:0,0,3:0,1,3:0,2,3:0,3,3:0,7,3:0,8,3:0,9,3:0,10,3:0,14,3:0,15,3:0,16,3:0,17,3:0,0,4:0,1,4:0,2,4:0,3,4:0,7,4:0,8,4:0,9,4:0,10,4:0,14,4:0,15,4:0,16,4:0,17,4:0,0,5:0,1,5:0,2,5:0,6,5:0,7,5:0,8,5:0,9,5:0,10,5:0,11,5:0,15,5:0,16,5:0,17,5:0,0,6:0,1,6:0,2,6:0,6,6:0,7,6:0,8,6:0,9,6:0,10,6:0,11,6:0,15,6:0,16,6:0,17,6:0,0,7:0,1,7:0,5,7:0,6,7:0,7,7:0,8,7:0,9,7:0,10,7:0,11,7:0,12,7:0,16,7:0,17,7:0,0,8:0,1,8:0,5,8:0,6,8:0,7,8:0,8,8:0,9,8:0,10,8:0,11,8:0,12,8:0,16,8:0,17,8:0,0,9:0,4,9:0,5,9:0,6,9:0,7,9:0,8,9:0,9,9:0,10,9:0,11,9:0,12,9:0,13,9:0,17,9:0,0,10:0,4,10:0,5,10:0,6,10:0,7,10:0,8,10:0,9,10:0,10,10:0,11,10:0,12,10:0,13,10:0,17,10";
tutorialVO.maxPlayers = 8;
tutorialVO.minPlayers = 1;
tutorialVO.mid = 0;
tutorialVO.mname = ChaseApp.lang.get(LanguageKeys.tutorial);
tutorialVO.msize = 18;
tutorialVO.uname = "CGC Dev";
tutorialVO.mrating = 5.0f;
ChaseApp.mapSelect.createMapCacheFromPreset();
myApp.setScreen(new ChainGame(myApp, getNumPlayers(), tutorialVO, ChaseApp.mapSelect.getMapCache(), transition, true));
}
示例6: alphaToAnimation
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}
});
}
示例7: onCreateStage
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}
示例8: moveLeft
import aurelienribon.tweenengine.BaseTween; //导入依赖的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());
}
}
}
示例9: moveRight
import aurelienribon.tweenengine.BaseTween; //导入依赖的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());
}
}
}
示例10: moveUp
import aurelienribon.tweenengine.BaseTween; //导入依赖的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());
}
}
}
示例11: moveDown
import aurelienribon.tweenengine.BaseTween; //导入依赖的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());
}
}
}
示例12: leaveScreen
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}
示例13: leaveScreen
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}
示例14: leaveAnimation
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}
示例15: leaveScreen
import aurelienribon.tweenengine.BaseTween; //导入依赖的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);
}