DEADSOFTWARE

Update version
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / objects / Drop.kt
index 151e48609fbc98a1c4bd95671b4530790f9abc9a..b6f21bb1d8e6c4509c43d82955a73768a1bb57d6 100644 (file)
@@ -6,10 +6,11 @@ import com.badlogic.gdx.math.Vector2
 import ru.deadsoftware.cavedroid.game.GameItemsHolder
 import ru.deadsoftware.cavedroid.game.model.item.Item
 
-class Drop(
+class Drop @JvmOverloads constructor(
     x: Float,
     y: Float,
     _item: Item,
+    val amount: Int = 1,
 ) : Rectangle(x, y, DROP_SIZE, DROP_SIZE) {
 
     val itemKey = _item.params.key
@@ -47,9 +48,9 @@ class Drop(
     }
 
     companion object {
-        private const val MAGNET_DISTANCE = 16f
+        private const val MAGNET_DISTANCE = 8f
 
-        const val MAGNET_VELOCITY = 128f
+        const val MAGNET_VELOCITY = 256f
         const val DROP_SIZE = 8f
 
         private fun getInitialVelocity(): Vector2 = Vector2(0f, -1f)