本文整理汇总了Java中aurelienribon.tweenengine.Timeline.createParallel方法的典型用法代码示例。如果您正苦于以下问题:Java Timeline.createParallel方法的具体用法?Java Timeline.createParallel怎么用?Java Timeline.createParallel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aurelienribon.tweenengine.Timeline
的用法示例。
在下文中一共展示了Timeline.createParallel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDuskTimeline
import aurelienribon.tweenengine.Timeline; //导入方法依赖的package包/类
private Timeline createDuskTimeline(float duration, float target) {
Timeline timeline = Timeline.createParallel();
timeline
.beginParallel()
.push(Tween.to(sunIntensity, ColorTweenAccessor.RED, duration).target(target).ease(TweenEquations.easeInSine))
.push(Tween.to(sunIntensity, ColorTweenAccessor.GREEN, duration).target(target).ease(TweenEquations.easeOutQuad))
.push(Tween.to(sunIntensity, ColorTweenAccessor.BLUE, duration).target(target).ease(TweenEquations.easeOutQuad))
.end();
return timeline;
}
示例2: createDawnTimeline
import aurelienribon.tweenengine.Timeline; //导入方法依赖的package包/类
private Timeline createDawnTimeline(float duration, float target) {
Timeline timeline = Timeline.createParallel();
timeline
.beginParallel()
.push(Tween.to(sunIntensity, ColorTweenAccessor.RED, duration).target(target).ease(TweenEquations.easeInOutSine))
.push(Tween.to(sunIntensity, ColorTweenAccessor.GREEN, duration).target(target).ease(TweenEquations.easeInQuad))
.push(Tween.to(sunIntensity, ColorTweenAccessor.BLUE, duration).target(target).ease(TweenEquations.easeInQuad))
.end();
return timeline;
}
示例3: show
import aurelienribon.tweenengine.Timeline; //导入方法依赖的package包/类
public void show() {
InputSystem.instance().bind(InputSystem.Keys.ESCAPE, closeMenuInputCallback);
InputSystem.instance().addInputProcessor(closeMenuInputAdapter, 0);
setVisible(true);
float angle = arc / getChildren().size;
getColor().a = 1f;
Timeline timeline = Timeline.createParallel();
int index = 0;
for (Actor child : getChildren()) {
child.getColor().a = 0;
child.setX(0);
child.setY(0);
float radian = (float) ((arcStart + (angle * index + angle / 2)) * (Math.PI / 180f));
float newX = (float) (-radius * Math.cos(radian));
float newY = (float) (radius * Math.sin(radian));
timeline.push(Tween.to(child, POSITION, 200).delay(10 * index++).target(newX, newY));
timeline.push(Tween.to(child, SCALE, 200).delay(10 * index++).target(1f, 1f));
timeline.push(Tween.to(child, OPACITY, 200).delay(10 * index++).target(1f));
}
timeline.start(TweenSystem.manager());
}
示例4: createTween
import aurelienribon.tweenengine.Timeline; //导入方法依赖的package包/类
@Override
public Timeline createTween(EngineEntity owner,
es.eucm.ead.schema.components.tweens.Timeline schemaTween) {
Timeline timeline = null;
if (schemaTween.getMode() == Mode.SEQUENCE) {
timeline = Timeline.createSequence();
} else {
timeline = Timeline.createParallel();
}
float delay = schemaTween.getDelay();
if (delay != 0f) {
timeline.delay(delay);
}
Array<BaseTween> children = schemaTween.getChildren();
for (int i = 0; i < children.size; ++i) {
BaseTween child = children.get(i);
BaseTweenCreator creator = creators.get(child.getClass());
if (creator != null) {
aurelienribon.tweenengine.BaseTween baseTween = creator
.createTween(owner, EngineUtils.buildWithParameters(
gameAssets, variableManager, child));
if (baseTween instanceof Tween) {
timeline = timeline.push((Tween) baseTween);
} else {
timeline = timeline.push((Timeline) baseTween);
}
}
}
int repeat = schemaTween.getRepeat();
if (repeat != 0) {
if (schemaTween.isYoyo()) {
timeline = timeline.repeatYoyo(repeat,
schemaTween.getRepeatDelay());
} else {
timeline = timeline
.repeat(repeat, schemaTween.getRepeatDelay());
}
}
return timeline;
}