Skip to content

Commit

Permalink
More tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
roboyeti committed Jan 5, 2023
1 parent e2f2ae9 commit b3210db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Fx {
if (config == null) {
config = {
type: Phaser.AUTO,
width: window.innerWidth,
width: window.screen.availWidth, //innerWidth,
height: window.innerHeight,
transparent: true,
backgroundColor: 'rgba(0,0,0,0)',
Expand Down
6 changes: 3 additions & 3 deletions fx/fountain/fountain.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Fountain extends Phaser.Scene {
frame: [ 'red', 'yellow', 'white', 'blue', 'green' ],
x: this.w/2,// - (i * 10),
y: this.h - 5,
lifespan: 2000,
lifespan: 2000 + (offset*2),
angle: { min: 260, max: 280 },
speed: { min: 800 + (offset/2), max: 1100 + (offset/2)},
scaleX: { start: 0.2, end: 0 },
Expand All @@ -34,7 +34,7 @@ class Fountain extends Phaser.Scene {
frame: [ 'red', 'yellow','white', 'blue', 'green' ],
x: this.w/2, // + (i * 15),
y: this.h - 5,
lifespan: 2000,
lifespan: 2000 + (offset*2),
angle: { min: 250, max: 290 },
speed: { min: 800 + (offset/2), max: 1100 + (offset/2)},
// speed: { min: 600, max: 1100 },
Expand All @@ -53,7 +53,7 @@ class Fountain extends Phaser.Scene {
setTimeout(()=>{
console.log('Fountain Cleanup...')
this.particles.scene.scene.remove()
},4250)
},4250 + (offset*2))
}

update() {
Expand Down
8 changes: 4 additions & 4 deletions fx/spray/spray.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Spray extends Phaser.Scene {
this.particles.createEmitter({
x: this.w/2,// - (i * 10),
y: this.h - 5,
lifespan: 2000,
lifespan: 2000 + (offset*2),
angle: { min: 200, max: 340 },
speed: { min: 500+ (offset/2), max: 600+ (offset/2) },
scaleX: { start: 0.55, end: 0 },
Expand All @@ -37,7 +37,7 @@ class Spray extends Phaser.Scene {
this.particles.createEmitter({
x: this.w/2,// - (i * 10),
y: this.h - 5,
lifespan: 2000,
lifespan: 2000 + (offset*2),
angle: { min: 250, max: 290 },
speed: { min: 900+ (offset/2), max: 1200+ (offset/2) },
scaleX: { start: 0.15, end: 0 },
Expand All @@ -59,7 +59,7 @@ class Spray extends Phaser.Scene {
this.particles.createEmitter({
x: this.w/2,// - (i * 10),
y: this.h - 5,
lifespan: 2000,
lifespan: 2000 + (offset*2),
angle: { min: 210, max: 330 },
speed: { min: 550+ (offset/2), max: 700+ (offset/2) },
scaleX: { start: 0.15, end: 0 },
Expand All @@ -78,7 +78,7 @@ class Spray extends Phaser.Scene {
setTimeout(()=>{
console.log('Spray Cleanup...')
this.particles.scene.scene.remove()
},4500)
},4500+ (offset*2))
}

update() {
Expand Down

0 comments on commit b3210db

Please sign in to comment.