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/PaintEmitter.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/PaintEmitter.qml')
-rw-r--r-- | examples/demos/samegame/content/PaintEmitter.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/demos/samegame/content/PaintEmitter.qml b/examples/demos/samegame/content/PaintEmitter.qml index 5f2ea1f9a9..4a67c4a2d2 100644 --- a/examples/demos/samegame/content/PaintEmitter.qml +++ b/examples/demos/samegame/content/PaintEmitter.qml @@ -40,6 +40,7 @@ import QtQuick 2.0 import QtQuick.Particles 2.0 +import "../settings.js" as Settings Emitter { property Item block: parent @@ -56,8 +57,8 @@ Emitter { "yellowspots"; } } - size: 64 - endSize: 16 + size: Settings.blockSize * 2 + endSize: Settings.blockSize/2 lifeSpan: 30000 enabled: false emitRate: 60 |