diff options
Diffstat (limited to 'examples/demos/maroon/content/GameOverScreen.qml')
-rw-r--r-- | examples/demos/maroon/content/GameOverScreen.qml | 70 |
1 files changed, 32 insertions, 38 deletions
diff --git a/examples/demos/maroon/content/GameOverScreen.qml b/examples/demos/maroon/content/GameOverScreen.qml index d4a67a2945..343bd7aba6 100644 --- a/examples/demos/maroon/content/GameOverScreen.qml +++ b/examples/demos/maroon/content/GameOverScreen.qml @@ -55,50 +55,44 @@ Item { } ParticleSystem { - id: particles - } - - ImageParticle { - id: cloud anchors.fill: parent - system: particles - source: "gfx/cloud.png" - alphaVariation: 0.25 - opacity: 0.25 - smooth: true - } + ImageParticle { + id: cloud + source: "gfx/cloud.png" + alphaVariation: 0.25 + opacity: 0.25 + smooth: true + } - Wander { - system: particles - anchors.fill: parent - xVariance: 100; - pace: 1; - } + Wander { + xVariance: 100; + pace: 1; + } - Emitter { - id: cloudLeft - system: particles - width: 160 - height: 160 - anchors.right: parent.left - emitRate: 0.5 - lifeSpan: 12000 - velocity: PointDirection{ x: 64; xVariation: 2; yVariation: 2 } - size: 160 - } + Emitter { + id: cloudLeft + width: 160 + height: 160 + anchors.right: parent.left + emitRate: 0.5 + lifeSpan: 12000 + velocity: PointDirection{ x: 64; xVariation: 2; yVariation: 2 } + size: 160 + } - Emitter { - id: cloudRight - system: particles - width: 160 - height: 160 - anchors.left: parent.right - emitRate: 0.5 - lifeSpan: 12000 - velocity: PointDirection{ x: -64; xVariation: 2; yVariation: 2 } - size: 160 + Emitter { + id: cloudRight + width: 160 + height: 160 + anchors.left: parent.right + emitRate: 0.5 + lifeSpan: 12000 + velocity: PointDirection{ x: -64; xVariation: 2; yVariation: 2 } + size: 160 + } } + Text { visible: gameCanvas != undefined text: "You saved " + gameCanvas.score + " fishes!" |