Parcourir la source

Fixes #207

tags/v0.1.5^2
Big Bad Waffle il y a 6 ans
Parent
révision
6447cd5814
3 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +1
    -0
      src/client/js/components/particles.js
  2. +1
    -1
      src/client/js/rendering/particles.js
  3. +1
    -0
      src/server/config/spells/spellFireblast.js

+ 1
- 0
src/client/js/components/particles.js Voir le fichier

@@ -15,6 +15,7 @@ define([
x: (this.obj.x * scale) + (scale / 2),
y: (this.obj.y * scale) + (scale / 2)
};
this.ttl = blueprint.ttl;

this.emitter = renderer.buildEmitter(this.blueprint);
},


+ 1
- 1
src/client/js/rendering/particles.js Voir le fichier

@@ -51,7 +51,7 @@ define([
if (destroy) {
if (e.particleCount > 0) {
visible = renderer.isVisible(e.spawnPos.x, e.spawnPos.y);
if (visible)
if (visible)
destroy = false;
}
}


+ 1
- 0
src/server/config/spells/spellFireblast.js Voir le fichier

@@ -32,6 +32,7 @@ define([
y: j,
components: [{
type: 'particles',
ttl: 10,
blueprint: this.particles
}]
};


Chargement…
Annuler
Enregistrer