diff options
-rw-r--r-- | core/src/ch/asynk/rustanddust/loading/LoadingBar.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/core/src/ch/asynk/rustanddust/loading/LoadingBar.java b/core/src/ch/asynk/rustanddust/loading/LoadingBar.java deleted file mode 100644 index 5a6181a..0000000 --- a/core/src/ch/asynk/rustanddust/loading/LoadingBar.java +++ /dev/null @@ -1,32 +0,0 @@ -package ch.asynk.rustanddust.loading; - -import com.badlogic.gdx.graphics.g2d.Animation; -import com.badlogic.gdx.graphics.g2d.Batch; -import com.badlogic.gdx.graphics.g2d.TextureRegion; -import com.badlogic.gdx.scenes.scene2d.Actor; - -public class LoadingBar extends Actor -{ - Animation animation; - TextureRegion reg; - float stateTime; - - public LoadingBar(Animation animation) - { - this.animation = animation; - reg = animation.getKeyFrame(0); - } - - @Override - public void act(float delta) - { - stateTime += delta; - reg = animation.getKeyFrame(stateTime); - } - - @Override - public void draw(Batch batch, float parentAlpha) - { - batch.draw(reg, getX(), getY()); - } -} |