diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-17 13:58:02 +0100 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-18 11:11:05 +0100 | 
| commit | 178fbdbf4ce1e37f4db179a0de14ae19b01923d2 (patch) | |
| tree | a98b07f30c0fa09935bfca109e968bd2218c16ff /core/src/ch/asynk/rustanddust/engine/gfx | |
| parent | cb81f0a8a194ceebaea880f9027635e6a27df69e (diff) | |
| download | RustAndDust-178fbdbf4ce1e37f4db179a0de14ae19b01923d2.zip RustAndDust-178fbdbf4ce1e37f4db179a0de14ae19b01923d2.tar.gz | |
Game: Factory knows about regions and provide them
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine/gfx')
| -rw-r--r-- | core/src/ch/asynk/rustanddust/engine/gfx/animations/PromoteAnimation.java | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/core/src/ch/asynk/rustanddust/engine/gfx/animations/PromoteAnimation.java b/core/src/ch/asynk/rustanddust/engine/gfx/animations/PromoteAnimation.java index 24eac18..e054acb 100644 --- a/core/src/ch/asynk/rustanddust/engine/gfx/animations/PromoteAnimation.java +++ b/core/src/ch/asynk/rustanddust/engine/gfx/animations/PromoteAnimation.java @@ -3,7 +3,7 @@ package ch.asynk.rustanddust.engine.gfx.animations;  import java.lang.Math;  import com.badlogic.gdx.audio.Sound; -import com.badlogic.gdx.graphics.g2d.TextureAtlas; +import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;  import com.badlogic.gdx.graphics.g2d.TextureRegion;  import com.badlogic.gdx.graphics.g2d.Batch;  import com.badlogic.gdx.graphics.glutils.ShapeRenderer; @@ -32,9 +32,9 @@ public class PromoteAnimation implements Animation, Drawable      private float volume;      private float elapsed; -    public static void init(TextureAtlas atlas, Sound usSnd, Sound geSnd) +    public static void init(AtlasRegion r, Sound usSnd, Sound geSnd)      { -        region = atlas.findRegion("stars"); +        region = r;          usSound = usSnd;          geSound = geSnd;      } | 
