# HG changeset patch # User Robin Stumm # Date 1481576439 -3600 # Mon Dec 12 22:00:39 2016 +0100 # Node ID 8dc2c14914142b2b5cc1ebadc6a6e48333a81bd7 # Parent 684f56b657be34077aa8383e5e2b16669d9071cd upgrade to libGDX 1.9.5 fix #18 had to adapt AnimatedSprite to new Animation syntax, see http://www.badlogicgames.com/wordpress/?p=3980 or https://github.com/libgdx/libgdx/blob/ac05c1911ebd4f4743a2a6ee57e236f3519b5f45/CHANGES diff --git a/gradle/common.gradle b/gradle/common.gradle --- a/gradle/common.gradle +++ b/gradle/common.gradle @@ -7,7 +7,7 @@ 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' diff --git a/src/main/net/dermetfan/gdx/graphics/g2d/AnimatedSprite.java b/src/main/net/dermetfan/gdx/graphics/g2d/AnimatedSprite.java --- a/src/main/net/dermetfan/gdx/graphics/g2d/AnimatedSprite.java +++ b/src/main/net/dermetfan/gdx/graphics/g2d/AnimatedSprite.java @@ -33,7 +33,7 @@ public class AnimatedSprite extends Sprite { /** the {@link Animation} to display */ - private Animation animation; + private Animation animation; /** the current time of the {@link Animation} */ private float time; @@ -52,7 +52,7 @@ /** creates a new {@link AnimatedSprite} with the given {@link Animation} * @param animation the {@link #animation} to use */ - public AnimatedSprite(Animation animation) { + public AnimatedSprite(Animation animation) { super(animation.getKeyFrame(0)); this.animation = animation; }