blob: 585e7d335eb025f63f94671db4dcffd48f2029ca (
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
x: Behavior { NumberAnimation { duration: spawned ? halfbeatInterval : 0} }
y: Behavior { NumberAnimation { duration: spawned ? halfbeatInterval : 0 } }
opacity: spawned ? 1 : 0
opacity: Behavior { NumberAnimation { duration: 200 } }
source: "pics/skull.png"
width: 24
height: 40
}
|