setSpriteFactory

Replaces how particle sprites are created, for tests.