Browse Source

Adjust acceleration rate. Don't set velocity after piece transition

Change-Id: If8b400b938b90d28c6461cd06fc736017dc3723f
Donald Carr 5 years ago
parent
commit
45c56d621e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      qml/views/trivial/Trivial.qml

+ 2 - 1
qml/views/trivial/Trivial.qml

@@ -44,6 +44,7 @@ Item {
                             d.imageArray[i + 1].push(item)
                             d.grainsOfSand = 0
                             d.velocity = 0
+                            return
                         } else {
                             item.destroy();
                             globalUtil.itemCount--
@@ -52,7 +53,7 @@ Item {
                         item.y += d.velocity
                     }
                 }
-                d.grainsOfSand += 0.05
+                d.grainsOfSand += 0.02
                 d.velocity = Math.pow(d.grainsOfSand, 2)
                 return;
             }