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


Java Timeline.createParallel方法代码示例

本文整理汇总了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;
}
 
开发者ID:mganzarcik,项目名称:fabulae,代码行数:11,代码来源:Sun.java

示例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;
}
 
开发者ID:mganzarcik,项目名称:fabulae,代码行数:11,代码来源:Sun.java

示例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());
}
 
开发者ID:frigidplanet,项目名称:droidtowers,代码行数:30,代码来源:RadialMenu.java

示例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;
}
 
开发者ID:e-ucm,项目名称:ead,代码行数:45,代码来源:TimelineCreator.java


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