本文整理了Java中com.badlogic.gdx.graphics.g2d.Animation.isAnimationFinished()
方法的一些代码示例,展示了Animation.isAnimationFinished()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.isAnimationFinished()
方法的具体详情如下:
包路径:com.badlogic.gdx.graphics.g2d.Animation
类名称:Animation
方法名:isAnimationFinished
[英]Whether the animation would be finished if played without looping (PlayMode#NORMAL), given the state time.
[中]给定状态时间,如果不循环播放(播放模式#正常),动画是否会完成。
代码示例来源:origin: udacity/ud406
public boolean isFinished() {
float elapsedTime = Utils.secondsSince(startTime) - offset;
return Assets.instance.explosionAssets.explosion.isAnimationFinished(elapsedTime);
}
}
代码示例来源:origin: udacity/ud406
public boolean isAnimationFinished() {
return animation.isAnimationFinished(elapsedTime());
}
代码示例来源:origin: BrentAureli/SuperMario
case GROWING:
region = growMario.getKeyFrame(stateTimer);
if(growMario.isAnimationFinished(stateTimer)) {
runGrowAnimation = false;
代码示例来源:origin: moribitotech/MTX
getRotation());
if (animation.isAnimationFinished(stateTime)) {
if (killAllAnimations) {
isAnimationActive = false;
if (animationMomentary.isAnimationFinished(stateTime)) {
if (!killAllAnimations) {
isAnimationActive = true;
代码示例来源:origin: moribitotech/MTX
getRotation());
if (animation.isAnimationFinished(stateTime)) {
if (killAllAnimations) {
isAnimationActive = false;
if (animationMomentary.isAnimationFinished(stateTime)) {
if (!killAllAnimations) {
isAnimationActive = true;
内容来源于网络,如有侵权,请联系作者删除!