diff --git a/core/assets/sprite-animation1.png b/core/assets/sprite-animation1.png new file mode 100644 index 0000000..9e50c9f Binary files /dev/null and b/core/assets/sprite-animation1.png differ diff --git a/core/src/temp/Animator.java b/core/src/temp/Animator.java index b08975f..56882ca 100644 --- a/core/src/temp/Animator.java +++ b/core/src/temp/Animator.java @@ -1,4 +1,4 @@ -package netwerkprog.game; +package temp; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Gdx; @@ -8,6 +8,9 @@ import com.badlogic.gdx.graphics.g2d.Animation; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; +/** + * code got from https://github.com/libgdx/libgdx/wiki/2D-Animation + */ public class Animator implements ApplicationListener { // Constant rows and columns of the sprite sheet