blob: c787235c1223d3fd8d62af45aab2cd65606f66ac (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Particles
Item {
id: container
property ParticleSystem particleSystem
property GameArea gameArea
onGameAreaChanged: bgstacker.parent = gameArea;//Move to direct child of game canvas
Item {
id: bgstacker
z: 0
ImageParticle {
groups: ["yellowspots"]
color: Qt.darker("yellow");//Actually want desaturated...
system: container.particleSystem
source: "gfx/particle-paint.png"
colorVariation: 0.2
alpha: 0.2
entryEffect: ImageParticle.None
}
ImageParticle {
groups: ["redspots"]
system: container.particleSystem
color: Qt.darker("red");//Actually want desaturated...
source: "gfx/particle-paint.png"
colorVariation: 0.2
alpha: 0.2
entryEffect: ImageParticle.None
}
ImageParticle {
groups: ["greenspots"]
system: container.particleSystem
color: Qt.darker("green");//Actually want desaturated...
source: "gfx/particle-paint.png"
colorVariation: 0.2
alpha: 0.2
entryEffect: ImageParticle.None
}
ImageParticle {
groups: ["bluespots"]
system: container.particleSystem
color: Qt.darker("blue");//Actually want desaturated...
source: "gfx/particle-paint.png"
colorVariation: 0.2
alpha: 0.2
entryEffect: ImageParticle.None
}
}
ImageParticle {
groups: ["yellow"]
system: container.particleSystem
color: Qt.darker("yellow");//Actually want desaturated...
source: "gfx/particle-brick.png"
colorVariation: 0.4
alpha: 0.1
}
ImageParticle {
groups: ["red"]
system: container.particleSystem
color: Qt.darker("red");//Actually want desaturated...
source: "gfx/particle-brick.png"
colorVariation: 0.4
alpha: 0.1
}
ImageParticle {
groups: ["green"]
system: container.particleSystem
color: Qt.darker("green");//Actually want desaturated...
source: "gfx/particle-brick.png"
colorVariation: 0.4
alpha: 0.1
}
ImageParticle {
groups: ["blue"]
system: container.particleSystem
color: Qt.darker("blue");//Actually want desaturated...
source: "gfx/particle-brick.png"
colorVariation: 0.4
alpha: 0.1
}
}
|