diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-06-08 13:19:56 +1000 |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2011-06-08 13:28:21 +1000 |
commit | 1f88f2ceedf00f96e2491ecdd1c655b0f12f3632 (patch) | |
tree | 1900da1a3793da99f9601762d337cf82dc4701ce /demos/declarative/samegame/SamegameCore/BoomBlock.qml | |
parent | 984f21f18d1a3981e7363df467ff2e24e69aa847 (diff) |
Immense Particles Refactor Part C
Demos work again (also, the examples I missed).
Added an example launcher for particles.
Diffstat (limited to 'demos/declarative/samegame/SamegameCore/BoomBlock.qml')
-rw-r--r-- | demos/declarative/samegame/SamegameCore/BoomBlock.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/declarative/samegame/SamegameCore/BoomBlock.qml b/demos/declarative/samegame/SamegameCore/BoomBlock.qml index 3d11fb9df2..b234688f8e 100644 --- a/demos/declarative/samegame/SamegameCore/BoomBlock.qml +++ b/demos/declarative/samegame/SamegameCore/BoomBlock.qml @@ -40,7 +40,7 @@ ****************************************************************************/ import QtQuick 2.0 -import Qt.labs.particles 2.0 +import QtQuick.Particles 2.0 Item { id: block @@ -71,7 +71,7 @@ Item { Behavior on opacity { NumberAnimation { duration: 200 } } anchors.fill: parent } - TrailEmitter { + Emitter { id: particles system: particleSystem particle: { @@ -85,12 +85,12 @@ Item { } anchors.fill: parent - speed: DirectedVector{targetX: block.width/2; targetY: block.height/2; magnitude: -60; magnitudeVariation: 60} - shape: Ellipse{fill:true} + speed: TargetedDirection{targetX: block.width/2; targetY: block.height/2; magnitude: -60; magnitudeVariation: 60} + shape: EllipseShape{fill:true} emitting: false; particleDuration: 700; particleDurationVariation: 100 particlesPerSecond: 1000 - maxParticles: 100 //only fires 0.1s bursts (still 2x old number, ColoredParticle wants less than 16000 max though) + maxParticles: 100 //only fires 0.1s bursts (still 2x old number, ImageParticle wants less than 16000 max though) particleSize: 28 particleEndSize: 14 } |