From d2538cfdf01bbcbaf28ebd254e6fc32fd2613f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 3 Dec 2014 22:18:32 +0100 Subject: TankFireAnimation: and image tuning --- android/assets/data/tank_fire.png | Bin 77414 -> 55453 bytes .../engine/gfx/animations/TankFireAnimation.java | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/android/assets/data/tank_fire.png b/android/assets/data/tank_fire.png index 3d3c826..ca544df 100644 Binary files a/android/assets/data/tank_fire.png and b/android/assets/data/tank_fire.png differ diff --git a/core/src/ch/asynk/tankontank/engine/gfx/animations/TankFireAnimation.java b/core/src/ch/asynk/tankontank/engine/gfx/animations/TankFireAnimation.java index 582d1ac..a96bcc2 100644 --- a/core/src/ch/asynk/tankontank/engine/gfx/animations/TankFireAnimation.java +++ b/core/src/ch/asynk/tankontank/engine/gfx/animations/TankFireAnimation.java @@ -17,8 +17,8 @@ public class TankFireAnimation implements Disposable, Animation, Pool.Poolable private static final float SHOT_SCATTERING = 60f; private static final float TIME_SCATTERING = 0.6f; private static final float START_DELAY = 0.8f; - private static final float SHOT_SPEED = 700f; - private static final float EXPLOSION_FRAME_DURATION = 0.05f; + private static final float SHOT_SPEED = 900f; + private static final float EXPLOSION_FRAME_DURATION = 0.07f; private TextureRegion fireRegion; private float fire_a; @@ -29,7 +29,6 @@ public class TankFireAnimation implements Disposable, Animation, Pool.Poolable private float fire_dy; private float fire_dw; - private float smoke_dx; private float smoke_df; private int smoke_frame; @@ -108,7 +107,6 @@ public class TankFireAnimation implements Disposable, Animation, Pool.Poolable this.fire_dw = (w / fire_duration); // smoke var - this.smoke_dx = 0f; this.smoke_df = (FireAnimation.tankFire.rows / explosion_duration); this.smoke_frame = 0; -- cgit v1.1-2-g2b99