agrfun 1.0.0

Download zip

class: ParticleBurst

[46:7] extends: object

A burst of dots that fly out from the middle of the AGR FXGL window and fade as they go. Build one and call run(). The one thing a caller usually wants to set is how many dots there are, so that is run()'s argument rather than a dial: burst = new ParticleBurst(); burst.run(); // two hundred dots burst.run(1000); // a thousand The dots leave together in every direction, slow down as they travel, and fade to nothing where they stop. The burst clears itself out of the game world once the last dot has gone. The numbers at the top of the class are the dials. Change them to alter the throw, the size of the dots, or how long they burn.

Members

Methods