DEADSOFTWARE

Move game world to new package
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / objects / Drop.java
index 07a2f6cf68b9ea8f6ecaeefbfbd0b604a4b48df3..995c79e9bc88a544804c740f8ac5582e9ed68610 100644 (file)
@@ -4,7 +4,7 @@ import com.badlogic.gdx.math.Intersector;
 import com.badlogic.gdx.math.MathUtils;
 import com.badlogic.gdx.math.Rectangle;
 import com.badlogic.gdx.math.Vector2;
-import ru.deadsoftware.cavedroid.game.GameWorld;
+import ru.deadsoftware.cavedroid.game.world.GameWorld;
 import ru.deadsoftware.cavedroid.game.mobs.Player;
 
 import java.io.Serializable;
@@ -106,9 +106,9 @@ public class Drop extends Rectangle implements Serializable {
 //        }
     }
 
-    public void move() {
-        x += velocity.x;
-        y += velocity.y;
+    public void move(float delta) {
+        x += velocity.x * delta;
+        y += velocity.y * delta;
         checkWorldBounds();
         y = MathUtils.round(y);
     }