Creating infinite particles with trails.


I am creating a 2d space game and would like to create some particles(space dust) in the scene to give the player a sense of movement. The player can move in all directions on a 2d plane so the particles would also need to move in all directions. I have seen this effect done very nicely in an iPhone game called Space Miner Blast

You can see in the video the small white trails that get longer and shorter based on the players velocity.

That's the effect I'm trying to achieve.

Any help would be great. Thanks.


I haven't tried it or anything, but something that would probably make things easier is to consider it conceptually as a particle emitter that's on the player that spawns particles around the player that are the opposite velocity that the player is moving instead of filling the world with particles or anything like that.