Update: Flame Particle Process (dysneuk1ox.js) 70 bytes modified
parent
defcafb0da
commit
b488ba00d8
|
@ -12,8 +12,8 @@ if (this.initialized) {
|
|||
|
||||
if (this.forward) {
|
||||
texture.offset.x += 0.1;
|
||||
if (texture.offset.x === 1) {
|
||||
if (texture.offset.y === 0.8) {
|
||||
if (texture.offset.x >= 1) {
|
||||
if (texture.offset.y >= 0.8) {
|
||||
texture.offset.x = 0.9;
|
||||
this.forward = false;
|
||||
} else {
|
||||
|
@ -21,7 +21,9 @@ if (this.forward) {
|
|||
texture.offset.y = 0;
|
||||
}
|
||||
} else {
|
||||
texture.offset.y += 0.2;
|
||||
if (texture.offset.y < 0.8) {
|
||||
texture.offset.y += 0.2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,7 +38,9 @@ if (!this.forward) {
|
|||
texture.offset.y = 0.8;
|
||||
}
|
||||
} else {
|
||||
texture.offset.y -= 0.2;
|
||||
if (texture.offset.y > 0) {
|
||||
texture.offset.y -= 0.2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue