com.badlogic.gdx.graphics.g2d.Animation.isAnimationFinished()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中com.badlogic.gdx.graphics.g2d.Animation.isAnimationFinished()方法的一些代码示例,展示了Animation.isAnimationFinished()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.isAnimationFinished()方法的具体详情如下:
包路径:com.badlogic.gdx.graphics.g2d.Animation
类名称:Animation
方法名:isAnimationFinished

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;

相关文章