• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Cubic类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: parseEasing

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
/**
 * Takes an easing name and gives you the corresponding TweenEquation.
 * You probably won't need this, but tools will love that.
 *
 * @param easingName The name of an easing, like "Quad.INOUT".
 * @return The parsed equation, or null if there is no match.
 */
public static TweenEquation parseEasing(String easingName) {
	if (easings == null) {
		easings = new TweenEquation[] {Linear.INOUT,
			Quad.IN, Quad.OUT, Quad.INOUT,
			Cubic.IN, Cubic.OUT, Cubic.INOUT,
			Quart.IN, Quart.OUT, Quart.INOUT,
			Quint.IN, Quint.OUT, Quint.INOUT,
			Circ.IN, Circ.OUT, Circ.INOUT,
			Sine.IN, Sine.OUT, Sine.INOUT,
			Expo.IN, Expo.OUT, Expo.INOUT,
			Back.IN, Back.OUT, Back.INOUT,
			Bounce.IN, Bounce.OUT, Bounce.INOUT,
			Elastic.IN, Elastic.OUT, Elastic.INOUT
		};
	}

	for (int i=0; i<easings.length; i++) {
		if (easingName.equals(easings[i].toString()))
			return easings[i];
	}

	return null;
}
 
开发者ID:mini2Dx,项目名称:universal-tween-engine,代码行数:31,代码来源:TweenUtils.java


示例2: startTransition

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void startTransition()
{
	if (owner instanceof CGCWorld && ((CGCWorld)owner).isTutorial())
	{
		transition = new Transition(sBatch, ChaseApp.lang.get(LanguageKeys.now_entering), ChaseApp.lang.get(LanguageKeys.created_by), ChaseApp.lang.get(LanguageKeys.loving_sheriff), myApp);
		transition.setXPosition(Data.ACTUAL_WIDTH * 1.5f);
		transition.setShow(true);
		transitioning = true;
		
		Timeline.createSequence()
		.push
		(Tween.to(transition, TransitionAccessor.TRANSLATE_X, 1.0f).ease(Cubic.OUT).target(0))
		.pushPause(2.0f)
		.setCallback(changeToTutorialScreen)
		.start(tManager);
	}
	else
	{
		transition = new Transition(sBatch, ChaseApp.mapSelect.getLastMap(), myApp);
		transition.setXPosition(Data.ACTUAL_WIDTH * 1.5f);
		transition.setShow(true);
		transitioning = true;
		
		Timeline.createSequence()
		.push
		(Tween.to(transition, TransitionAccessor.TRANSLATE_X, 1.0f).ease(Cubic.OUT))
		.pushPause(2.0f)
		.setCallback(changeToGameScreen)
		.start(tManager);
	}
	
	
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:34,代码来源:PauseMenu.java


示例3: startTransition

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void startTransition()
{
	transition = new Transition(sBatch, determineBossType(), myApp);
	transition.setXPosition(Data.ACTUAL_WIDTH * 1.5f);
	transition.setShow(true);
	transitioning = true;
	
	Timeline.createSequence()
	.push
	(Tween.to(transition, TransitionAccessor.TRANSLATE_X, 1.0f).ease(Cubic.OUT).target(0))
	.pushPause(2.0f)
	.setCallback(changeToBossFight)
	.start(tManager);
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:15,代码来源:ChainGame.java


示例4: finishTransition

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void finishTransition()
{
	transitioning = true;
	
	Timeline.createSequence()
	.push
	(Tween.to(transition, TransitionAccessor.TRANSLATE_X, .75f).ease(Cubic.IN).target(-Data.GAME_WIDTH * 1.5f))
	.setCallback(clearTransition)
	.start(tManager);
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:11,代码来源:ChainGame.java


示例5: startTransition

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void startTransition()
{
	transition = new Transition(sBatch, ChaseApp.mapSelect.getLastMap(), myApp);
	transition.setXPosition(Data.ACTUAL_WIDTH * 1.5f);
	transition.setShow(true);
	transitioning = true;
	
	Timeline.createSequence()
	.push
	(Tween.to(transition, TransitionAccessor.TRANSLATE_X, 1.0f).ease(Cubic.OUT))
	.pushPause(2.0f)
	.setCallback(changeToGameScreen)
	.start(tManager);
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:15,代码来源:Win.java


示例6: startTransition

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void startTransition()
{
	transition = new Transition(sBatch, lastMap, myApp);
	transition.setXPosition(Data.ACTUAL_WIDTH * 1.5f);
	transition.setShow(true);
	transitioning = true;
	
	Timeline.createSequence()
	.push
	(Tween.to(transition, TransitionAccessor.TRANSLATE_X, 1.0f).ease(Cubic.OUT).target(0))
	.pushPause(2.0f)
	.setCallback(changeToGameScreen)
	.start(tManager);
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:15,代码来源:SelectMap.java


示例7: startTransition

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void startTransition()
{
	transition = new Transition(sBatch, ChaseApp.lang.get(LanguageKeys.now_entering), ChaseApp.lang.get(LanguageKeys.created_by), ChaseApp.lang.get(LanguageKeys.loving_sheriff), myApp);
	transition.setXPosition(Data.ACTUAL_WIDTH * 1.5f);
	transition.setShow(true);
	transitioning = true;
	
	Timeline.createSequence()
	.push
	(Tween.to(transition, TransitionAccessor.TRANSLATE_X, 1.0f).ease(Cubic.OUT).target(0))
	.pushPause(2.0f)
	.setCallback(changeToTutorialScreen)
	.start(tManager);
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:15,代码来源:CharacterSelect.java


示例8: finishTransition

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void finishTransition()
{
	transitioning = true;
	transition.setShow(true);
	
	Timeline.createSequence()
	.push
	(Tween.to(transition, TransitionAccessor.TRANSLATE_X, .75f).ease(Cubic.IN).target(-Data.GAME_WIDTH * 1.5f))
	.setCallback(clearTransition)
	.start(tManager);
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:12,代码来源:BossFight.java


示例9: setUpPortraitX

import aurelienribon.tweenengine.equations.Cubic; //导入依赖的package包/类
private void setUpPortraitX()
{
	float portraitStartX = 0;
	float portraitWidth = Characters.defaultCon.portrait.getRegionWidth();
	// How far apart each character portrait is from the next
	if (portraitWidth * MAX_PLAYERS > Data.MENU_WIDTH)
	{
		portraitStartX = -MenuTextureRegion.TITLE_SAFE_X;
		portraitXIncrement = (float)(Data.MENU_WIDTH - portraitWidth)
				/ (float)(MAX_PLAYERS-1);
	}
	else
	{
		portraitStartX = MenuTextureRegion.TITLE_SAFE_X
				+ (((Data.MENU_WIDTH) - MenuTextureRegion.TITLE_SAFE_X) / 2f)
				- (portraitWidth * MAX_PLAYERS) / 2f;
		portraitXIncrement = portraitWidth;
	}
	
	float portraitX;
	
	//Set up the character portraits and thumbnails
	for (int i = 0; i < MAX_PLAYERS; i++)
	{	
		if (tManager.containsTarget(convictPortraits.get(i),
				MenuTextureRegionAccessor.TRANSLATE_X))
		{
			tManager.killTarget(convictPortraits.get(i));
			tManager.killTarget(copPortraits.get(i));
		}
		
		portraitX = portraitStartX + i * portraitXIncrement;
		
		// Calculate the X position for each portrait and set it

		Tween.to(convictPortraits.get(i), MenuTextureRegionAccessor.TRANSLATE_X, 1f).target(portraitX)
		.ease(Cubic.INOUT).start(tManager);
		Tween.to(copPortraits.get(i), MenuTextureRegionAccessor.TRANSLATE_X, 1f).target(portraitX)
		.ease(Cubic.INOUT).start(tManager);
	}
}
 
开发者ID:ChainGangChase,项目名称:cgc-game,代码行数:42,代码来源:CharacterSelect.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MustacheEngineBuilder类代码示例发布时间:2022-05-23
下一篇:
Java OCSPResponseStatus类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap