blob: 821996a2273e7c629e3fa7bf04093d1e70a6e47d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import Qt 4.6
Image {
property bool spawned: false
property int row;
property int column;
property int verticalMovement;
property int horizontalMovement;
x: margin + column * gridSize + 2
y: margin + row * gridSize - 3
Behavior on x { NumberAnimation { duration: spawned ? halfbeatInterval : 0} }
Behavior on y { NumberAnimation { duration: spawned ? halfbeatInterval : 0 } }
opacity: spawned ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 200 } }
source: "pics/skull.png"
width: 24
height: 40
}
|