equal
deleted
inserted
replaced
71 } else { |
71 } else { |
72 "pics/redStone.png"; |
72 "pics/redStone.png"; |
73 } |
73 } |
74 } |
74 } |
75 |
75 |
76 /* |
|
77 transform: Rotation { |
76 transform: Rotation { |
78 id: actualImageRotation |
77 id: actualImageRotation |
79 origin.x: width/2; origin.y: height/2; |
78 origin.x: width/2; origin.y: height/2; |
80 angle: rotation * 90 |
79 angle: rotation * 90 |
81 Behavior on angle { NumberAnimation { duration: spawned ? 200 : 0} } |
80 Behavior on angle { NumberAnimation { duration: spawned ? 200 : 0} } |
82 } |
81 } |
83 */ |
|
84 } |
82 } |
85 |
83 |
86 Image { |
84 Image { |
87 source: "pics/stoneShadow.png" |
85 source: "pics/stoneShadow.png" |
88 } |
86 } |
89 |
87 |
90 opacity: 0 |
88 opacity: 0 |
91 Behavior on opacity { NumberAnimation { duration: 200 } } |
|
92 } |
89 } |
93 |
90 |
94 |
91 |
95 Particles { id: particles |
92 Particles { id: particles |
96 width:1; height:1; anchors.centerIn: parent; |
93 width:1; height:1; anchors.centerIn: parent; |
114 State{ name: "DeathState"; when: dying == true |
111 State{ name: "DeathState"; when: dying == true |
115 StateChangeScript { script: particles.burst(50); } |
112 StateChangeScript { script: particles.burst(50); } |
116 PropertyChanges { target: img; opacity: 0 } |
113 PropertyChanges { target: img; opacity: 0 } |
117 } |
114 } |
118 ] |
115 ] |
|
116 |
|
117 transitions: [ |
|
118 Transition { |
|
119 NumberAnimation { target: img; property: "opacity"; duration: 200 } |
|
120 } |
|
121 ] |
|
122 |
119 } |
123 } |