blob: b4e9b7f7f0e5b9c9d37af32cde127c25c0a85d7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Particles
Emitter {
id: emitter
property Item block: parent
velocity: TargetDirection {
targetX: emitter.block.width/2
targetY: emitter.block.height/2
magnitude: -40
magnitudeVariation: 40
}
acceleration: TargetDirection {
targetX: emitter.block.width/2
targetY: emitter.block.height/2
magnitude: -100
}
shape: EllipseShape{fill:true}
enabled: false;
lifeSpan: 700; lifeSpanVariation: 100
emitRate: 1000
maximumEmitted: 100 //only fires 0.1s bursts (still 2x old number)
size: Settings.blockSize * 0.85
endSize: Settings.blockSize * 0.85 /2
}
|