STRd6 / pixieengine.com

Where pixels become heros, together.
https://pixieengine.com
30 stars 11 forks source link

Named particle effects #210

Closed mdiebolt closed 12 years ago

mdiebolt commented 12 years ago

We should start collecting good looking particle effects and naming them so that they are easier to use.

A few ideas: Explosion, Splatter, Dust.

We could even embed some base64 encoded images as the sprites for the particles.

mdiebolt commented 12 years ago

I added dust_emitter to PixieDust. It provides defaults for the emitter and bundles a dust particle. It isn't super flexible right now, but we can add that later. Now the API for adding dust particles is very clean.

# adds a dust emitter at the foot of the calling object
engine.add 'DustEmitter'
  x: I.x
  y: I.y + I.height / 2