mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-23 17:51:06 +00:00
Clear particles with an associated layer when leaving that layer
This commit is contained in:
parent
4f831f51b0
commit
96cecedec5
3 changed files with 7 additions and 4 deletions
js/Demo
|
@ -527,7 +527,6 @@ addLayer("a", {
|
|||
},
|
||||
},
|
||||
midsection: ["grid", "blank"],
|
||||
marked: true,
|
||||
grid: {
|
||||
maxRows: 3,
|
||||
rows: 2,
|
||||
|
@ -560,7 +559,7 @@ addLayer("a", {
|
|||
const coolParticle = {
|
||||
image:"options_wheel.png",
|
||||
spread: 20,
|
||||
gravity: 0,
|
||||
gravity: 2,
|
||||
time: 9999,
|
||||
rotation (id) {
|
||||
return 20 * (id - 1.5) + (Math.random() - 0.5) * 10
|
||||
|
@ -569,7 +568,7 @@ const coolParticle = {
|
|||
return (Math.random() - 0.5) * 10
|
||||
},
|
||||
speed() {
|
||||
0
|
||||
return (Math.random() + 1.2) * 8
|
||||
},
|
||||
onClick() {
|
||||
console.log("yay")
|
||||
|
@ -579,5 +578,6 @@ const coolParticle = {
|
|||
},
|
||||
update() {
|
||||
//this.width += 1
|
||||
}
|
||||
},
|
||||
layer: 'f',
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue