updated particle example for new properties

This commit is contained in:
ericrius1 2015-08-13 15:36:13 -07:00
parent 5b2e966ca5
commit 9322960c63

View file

@ -39,10 +39,11 @@
this.entity = Entities.addEntity({ type: "ParticleEffect", this.entity = Entities.addEntity({ type: "ParticleEffect",
animationSettings: animationSettings, animationSettings: animationSettings,
position: spawnPoint, position: spawnPoint,
textures: "http://www.hyperlogic.org/images/particle.png", dimensions: {x: 2, y: 2, z: 2},
emitRate: emitRate, emitVelocity: {x: 0, y: 5, z: 0},
emitStrength: emitStrength, velocitySpread: {x: 2, y: 0, z: 2},
emitDirection: emitDirection, emitAcceleration: {x: 0, y: -9.8, z: 0},
textures: "https://raw.githubusercontent.com/ericrius1/SantasLair/santa/assets/smokeparticle.png",
color: color, color: color,
lifespan: 1.0, lifespan: 1.0,
visible: true, visible: true,