From 7069550ab0e0ce010c8328fbc9cd74344ee28f25 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 8 Dec 2014 01:47:26 -0500 Subject: [PATCH] v0.2.3: added functionality to freeze particle effects --- .../shatteredpixeldungeon/scenes/GameScene.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index c40b30b70..6d97d4309 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -22,6 +22,7 @@ import java.io.IOException; import com.shatteredpixel.shatteredpixeldungeon.*; import com.watabou.noosa.Camera; import com.watabou.noosa.Game; +import com.watabou.noosa.Gizmo; import com.watabou.noosa.Group; import com.watabou.noosa.SkinnedBlock; import com.watabou.noosa.Visual; @@ -80,7 +81,7 @@ public class GameScene extends PixelScene { private static final String TXT_SECRETS = "The atmosphere hints that this floor hides many secrets."; static GameScene scene; - + private SkinnedBlock water; private DungeonTilemap tiles; private FogOfWar fog; @@ -312,16 +313,16 @@ public class GameScene extends PixelScene { // } } - + @Override public synchronized void update() { if (Dungeon.hero == null) { return; } - + super.update(); - water.offset( 0, -5 * Game.elapsed ); + if (!freezeEmitters) water.offset( 0, -5 * Game.elapsed ); Actor.process();