hurrrrrrr

This commit is contained in:
ntr 2018-11-28 00:03:40 +11:00
parent e6e93b776e
commit 9f4f9c96be

View File

@ -22,7 +22,7 @@ class CombatSkills extends Phaser.GameObjects.Group {
} }
wall(isAlly) { wall(isAlly) {
const lifespan = DELAYS.EFFECT_DURATION; const lifespan = DELAYS.ANIMATION_DURATION;
const { spawnLocation, speed, img } = animationParams(isAlly); const { spawnLocation, speed, img } = animationParams(isAlly);
const particles = this.scene.add.particles(img); const particles = this.scene.add.particles(img);
const emitter = particles.createEmitter({ const emitter = particles.createEmitter({
@ -39,7 +39,7 @@ class CombatSkills extends Phaser.GameObjects.Group {
} }
spit(isAlly) { spit(isAlly) {
const lifespan = DELAYS.EFFECT_DURATION; const lifespan = DELAYS.ANIMATION_DURATION;
const { spawnLocation, speed, img, angleMin, angleMax } = animationParams(isAlly); const { spawnLocation, speed, img, angleMin, angleMax } = animationParams(isAlly);
const particles = this.scene.add.particles(img); const particles = this.scene.add.particles(img);
const emitter = particles.createEmitter({ const emitter = particles.createEmitter({
@ -58,7 +58,7 @@ class CombatSkills extends Phaser.GameObjects.Group {
} }
gravBomb(isAlly) { gravBomb(isAlly) {
const lifespan = DELAYS.EFFECT_DURATION; const lifespan = DELAYS.ANIMATION_DURATION;
const { spawnLocation, img } = animationParams(isAlly); const { spawnLocation, img } = animationParams(isAlly);
const particles = this.scene.add.particles(img); const particles = this.scene.add.particles(img);
@ -82,7 +82,7 @@ class CombatSkills extends Phaser.GameObjects.Group {
} }
gravBlast(isAlly) { gravBlast(isAlly) {
const lifespan = DELAYS.EFFECT_DURATION; const lifespan = DELAYS.ANIMATION_DURATION;
const WELL_END = lifespan / 2; const WELL_END = lifespan / 2;
const img = randomColour(); const img = randomColour();
@ -113,7 +113,7 @@ class CombatSkills extends Phaser.GameObjects.Group {
} }
chargeBall(isAlly) { chargeBall(isAlly) {
const lifespan = DELAYS.EFFECT_DURATION; const lifespan = DELAYS.ANIMATION_DURATION;
const CHARGE_LIFESPAN = lifespan / 2; const CHARGE_LIFESPAN = lifespan / 2;
const { img, spawnLocation } = animationParams(isAlly); const { img, spawnLocation } = animationParams(isAlly);