summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/FramedSprite.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-01-15 17:40:51 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-01-15 17:40:51 +0100
commitc6011ade66ad9f897b09f44d17c2f40c4d63e3f0 (patch)
treed268b130c858929fd43b8a38cc74ae6183a96a7d /core/src/ch/asynk/gdx/boardgame/FramedSprite.java
parenta676cc05908ac0a5c6471e76c0843e15314972d6 (diff)
downloadgdx-boardgame-c6011ade66ad9f897b09f44d17c2f40c4d63e3f0.zip
gdx-boardgame-c6011ade66ad9f897b09f44d17c2f40c4d63e3f0.tar.gz
ShellFireAnimation -> ShotAnimation and FireAnimation
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/FramedSprite.java')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/FramedSprite.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/FramedSprite.java b/core/src/ch/asynk/gdx/boardgame/FramedSprite.java
index d6c5fc7..1f60f9c 100644
--- a/core/src/ch/asynk/gdx/boardgame/FramedSprite.java
+++ b/core/src/ch/asynk/gdx/boardgame/FramedSprite.java
@@ -15,7 +15,7 @@ public class FramedSprite implements Drawable, Positionable
public final int cols;
public float x;
public float y;
- public float a;
+ public float r;
public FramedSprite(Texture texture, int rows, int cols)
{
@@ -25,7 +25,7 @@ public class FramedSprite implements Drawable, Positionable
this.cols = cols;
this.x = 0;
this.y = 0;
- this.a = 0;
+ this.r = 0;
if (trim > 0 || offset > 0) {
for (int r = 0; r < rows; r++) {
@@ -53,7 +53,7 @@ public class FramedSprite implements Drawable, Positionable
this.frame = frames[0][0];
this.x = other.x;
this.y = other.y;
- this.a = other.a;
+ this.r = other.r;
}
public void setFrame(int row, int col)
@@ -99,6 +99,6 @@ public class FramedSprite implements Drawable, Positionable
@Override public void draw(Batch batch)
{
- batch.draw(frame, x, y, 0, 0, frame.getRegionWidth(), frame.getRegionHeight(), 1f, 1f, a);
+ batch.draw(frame, x, y, 0, 0, frame.getRegionWidth(), frame.getRegionHeight(), 1f, 1f, r);
}
}