M gradle/common.gradle +1 -1
@@ 7,7 7,7 @@ ext {
libName = 'libgdx-utils'
nameAppendix = project == rootProject ? '' : (project.parent != rootProject ? project.parent.nameAppendix + '-' : '') + project.name
nameFull = libName + (nameAppendix.empty ? '' : "-$nameAppendix")
- libgdxVersion = '1.9.4'
+ libgdxVersion = '1.9.5'
}
group = 'net.dermetfan.libgdx-utils'
M src/main/net/dermetfan/gdx/graphics/g2d/AnimatedSprite.java +2 -2
@@ 33,7 33,7 @@ import com.badlogic.gdx.graphics.g2d.Tex
public class AnimatedSprite extends Sprite {
/** the {@link Animation} to display */
- private Animation animation;
+ private Animation<TextureRegion> animation;
/** the current time of the {@link Animation} */
private float time;
@@ 52,7 52,7 @@ public class AnimatedSprite extends Spri
/** creates a new {@link AnimatedSprite} with the given {@link Animation}
* @param animation the {@link #animation} to use */
- public AnimatedSprite(Animation animation) {
+ public AnimatedSprite(Animation<TextureRegion> animation) {
super(animation.getKeyFrame(0));
this.animation = animation;
}