-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
858 additions
and
1,038 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Audio for these effects come from the following sources: | ||
|
||
http://www.freesoundslibrary.com | ||
http://pixabay.com | ||
|
||
In some cases, the audio files have been modified and all renamed. | ||
|
||
The author(s) of overfx make no claim for the ownership of said files. | ||
|
||
Your inclusion of the open source overfx into your web page or application may be required to provide attribution to the above sights. | ||
|
||
We are not lawyers and it is you job to determine your requirements. | ||
|
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
class Boom extends OverFxScene { | ||
constructor (config={}) { | ||
super(config); | ||
} | ||
|
||
preload() { | ||
this.load.image('particle', 'assets/overfx/muzzleflash3.png'); | ||
this.load.audio('boom', ['assets/overfx/explosion.mp3',]); | ||
} | ||
|
||
create() { | ||
var x = this.w/2 + getRndInteger(-this.w/4, this.w/4) | ||
var y = this.h/2 + getRndInteger(-this.h/3, this.h/6) | ||
|
||
var conf = { | ||
x: x, | ||
y: y, | ||
alpha: { start: 0.7, end: 0 }, | ||
scale: { start: 0.1, end: 4.5 }, | ||
speed: 100, | ||
angle: { min: -85, max: -95 }, | ||
rotate: { min: -180, max: 180 }, | ||
lifespan: { min: 1000, max: 1200 }, | ||
blendMode: 'SCREEN', | ||
maxParticles: 15, | ||
quantity:1, | ||
tint: 0x222222, | ||
} | ||
|
||
for (var i=0;i<3;i++) { | ||
var myp = this.add_emitter('particle',conf); | ||
this.add_emitter(myp,Object.assign(conf,{ | ||
scale: { start: 0.5, end: 3.5 }, | ||
speed: 50, | ||
accelerationY: 0, | ||
lifespan: { min: 700, max: 900 }, | ||
quanitity: 2, | ||
maxParticles: 6, | ||
tint: 0xFFAA44, | ||
})); | ||
this.add_emitter(myp,Object.assign(conf,{ | ||
scale: { start: 0.3, end: 2.5 }, | ||
speed: 30, | ||
accelerationY: 0, | ||
lifespan: { min: 700, max: 900 }, | ||
quanitity: 2, | ||
particleBringToTop: true, | ||
maxParticles: 6, | ||
tint: 0xFFFFFF, | ||
})); | ||
this.audio_play_detune('boom',-1000,1000) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class Confetti extends OverFxScene { | ||
constructor (config={}) { | ||
super(config); | ||
} | ||
|
||
preload() { | ||
this.load.image('confetti', 'assets/overfx/confetti.png'); | ||
this.load.audio('confetti', 'assets/overfx/pop.mp3'); | ||
} | ||
|
||
create() { | ||
var conf = { | ||
x: this.w/2 + getRndInteger(-this.w/10,this.w/10), | ||
y: this.h/3 + getRndInteger(-this.h/8,this.h/8), | ||
speed: { min: 400, max: 800 }, | ||
angle: { min: 220, max: 320 }, | ||
scaleX: { min: 0.01, max: 0.2 }, | ||
scaleY: { min: -1, max: 1 }, | ||
rotate: { min: -360, max: 360, ease: 'Back.easeOut' }, | ||
lifespan: 3000, | ||
gravityY: 900 , | ||
maxParticles: 24, | ||
quantity: 3, | ||
tint: [ 0xEE8844, 0xFF3333, 0xDD77DD, 0x8888FF, 0xFF88FF, 0xFFFFFF ], | ||
} | ||
|
||
for (var i=0;i<10;i++) { | ||
this.add_emitter('confetti',conf) | ||
} | ||
this.audio_play_detune('confetti',-300,300) | ||
} | ||
|
||
} |
Binary file not shown.
Oops, something went wrong.