ig.

EntityParticleColor

new EntityParticleColor()

Fast particle that looks like a simple colored square. IMPORTANT: this entity has a defined size and animation sheet!
- colored particle sprite sheet courtesy of Jesse Freeman

Author:
  • Collin Hover - collinhover.com
  • Jesse Freeman
Source:

<static> colorOffsets

Color offset map, based on ig.EntityParticleColor#animSheet

Properties:
Name Type Description
RED Number 0
YELLOW Number 4
GREEN Number 8
BLUE Number 12
PURPLE Number 16
BROWN Number 20
GRAY Number 24
WHITE Number 28
Source:

animSequenceCount

Default Value:
  • 7
Source:

animSheet

Default Value:
  • particles.png
Source:

animTileOffset

Default Value:
  • 0
Source:

fadeBeforeDeathDuration

Default Value:
  • 0.15
Source:

lifeDuration

Default Value:
  • 0.35
Source:

size

Default Value:
  • 2x2
Source:

vel

Default Value:
  • 50x50
Source:

reset()

Resets color particle visuals and randomizes slightly from offset.

Source: