Commit 468f800e authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

fishgame, removed broken call to item.refresh

A call to refresh was done on an undefined item. After digging I
don't understand the need for a refresh here, bubbles works fine without.
parent 5f215a91
......@@ -77,13 +77,11 @@ AnimatedSprite {
y = Activity.currentLevel > 0
? bar.height + Math.random() * (background.height - bar.height - fish.height)
: y
bubbleEffect.restart()
} else if(x == 0 && rotate.angle == 180) {
rotateRightAnimation.start()
targetX = background.width - fish.width
x = targetX
bubbleEffect.restart()
}
}
}
Behavior on x { PropertyAnimation { duration: fish.duration } }
Behavior on y { PropertyAnimation { duration: fish.duration } }
......@@ -104,10 +102,6 @@ AnimatedSprite {
id: bubbleEffect
anchors.fill: parent
active: ApplicationInfo.hasShader
function restart() {
if(active)
item.restart()
}
sourceComponent: ParticleSystem {
anchors.fill: parent
Emitter {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment