diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2012-11-15 13:47:24 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-20 18:11:18 +0100 |
commit | dea27f3421e29a54add2fdab2424529f77535def (patch) | |
tree | f46f16480674181c9dd21a0816e78ec731647f6b /examples/demos/samegame/content/BlockEmitter.qml | |
parent | 6c1d43060af15b2f80487d9982f5ef8423cfed8b (diff) |
Refactoring samegame
This patch cleans up the example and makes it more customizeable by adding a setting file. Also a bug has been fixed, where the "New game" button could not been clicked.
Change-Id: Ia397258721dfcf4900e3ed1e176a257eccfad354
Reviewed-by: Alan Alpert (RIM) <aalpert@rim.com>
Diffstat (limited to 'examples/demos/samegame/content/BlockEmitter.qml')
-rw-r--r-- | examples/demos/samegame/content/BlockEmitter.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/demos/samegame/content/BlockEmitter.qml b/examples/demos/samegame/content/BlockEmitter.qml index e39616ee52..7dad509dfd 100644 --- a/examples/demos/samegame/content/BlockEmitter.qml +++ b/examples/demos/samegame/content/BlockEmitter.qml @@ -41,6 +41,8 @@ import QtQuick 2.0 import QtQuick.Particles 2.0 +import "../settings.js" as Settings + Emitter { property Item block: parent velocity: TargetDirection{targetX: block.width/2; targetY: block.height/2; magnitude: -40; magnitudeVariation: 40} @@ -50,6 +52,6 @@ Emitter { lifeSpan: 700; lifeSpanVariation: 100 emitRate: 1000 maximumEmitted: 100 //only fires 0.1s bursts (still 2x old number) - size: 28 - endSize: 14 + size: Settings.blockSize * 0.85 + endSize: Settings.blockSize * 0.85 /2 } |