|
@@ -8,6 +8,8 @@ Item {
|
|
id: root
|
|
id: root
|
|
|
|
|
|
property var imageArray: []
|
|
property var imageArray: []
|
|
|
|
+ property real velocity: 0
|
|
|
|
+ property real grainsOfSand: 0
|
|
|
|
|
|
function animationStep() {
|
|
function animationStep() {
|
|
var fullyLoaded = true
|
|
var fullyLoaded = true
|
|
@@ -43,14 +45,18 @@ Item {
|
|
if (globalSettings.columnCount - i > 1) {
|
|
if (globalSettings.columnCount - i > 1) {
|
|
item.columnIndex = i + 1
|
|
item.columnIndex = i + 1
|
|
d.imageArray[i + 1].push(item)
|
|
d.imageArray[i + 1].push(item)
|
|
|
|
+ root.grainsOfSand = 0
|
|
|
|
+ root.velocity = 0
|
|
} else {
|
|
} else {
|
|
item.destroy();
|
|
item.destroy();
|
|
globalUtil.itemCount--
|
|
globalUtil.itemCount--
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- item.y += 1
|
|
|
|
|
|
+ item.y += root.velocity
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ root.grainsOfSand += 0.05
|
|
|
|
+ root.velocity = Math.pow(root.grainsOfSand, 2)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|