diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-07-16 04:37:15 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-07-16 04:37:15 (GMT) |
commit | a484b83cbc968a8088e6fd1b0bb39570ba157c93 (patch) | |
tree | 2b92160e43da5e07bbdf9f432ec639a80ced4fdd /demos/declarative/samegame/content/BoomBlock.qml | |
parent | 700f70761782fc30eb550f0036712123232af2dd (diff) | |
download | Qt-a484b83cbc968a8088e6fd1b0bb39570ba157c93.zip Qt-a484b83cbc968a8088e6fd1b0bb39570ba157c93.tar.gz Qt-a484b83cbc968a8088e6fd1b0bb39570ba157c93.tar.bz2 |
Updates to the SameGame demo
Tiles now fall down from the top, instead of the corner, and a bit of
clean up.
Diffstat (limited to 'demos/declarative/samegame/content/BoomBlock.qml')
-rw-r--r-- | demos/declarative/samegame/content/BoomBlock.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/declarative/samegame/content/BoomBlock.qml b/demos/declarative/samegame/content/BoomBlock.qml index 0d05772..5e5cf18 100644 --- a/demos/declarative/samegame/content/BoomBlock.qml +++ b/demos/declarative/samegame/content/BoomBlock.qml @@ -1,11 +1,11 @@ Item { id:block property bool dying: false - property bool spawning: false + property bool spawned: false property int type: 0 property int targetX: 0 property int targetY: 0 - x: Follow { source: targetX; spring: 1.2; damping: 0.1 } + x: Follow { enabled: spawned; source: targetX; spring: 1.2; damping: 0.1 } y: Follow { source: targetY; spring: 1.2; damping: 0.1 } Image { id: img @@ -38,7 +38,7 @@ Item { id:block } states: [ - State{ name: "AliveState"; when: spawning == true && dying == false + State{ name: "AliveState"; when: spawned == true && dying == false SetProperties { target: img; opacity: 1 } }, State{ name: "DeathState"; when: dying == true |