From 178fbdbf4ce1e37f4db179a0de14ae19b01923d2 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Thu, 17 Dec 2015 13:58:02 +0100 Subject: Game: Factory knows about regions and provide them --- .../asynk/rustanddust/engine/gfx/animations/PromoteAnimation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/src/ch/asynk/rustanddust/engine/gfx') 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 24eac184..e054acb2 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; } -- cgit v1.2.3