libgdx/libgdx — pull request #1922 by FredGithub (2014-06-01 02:19:16+00:00)
Title: make particle effect loading less restrictive when using an atlas image

The particle loading system strips the Image Path, keeping only the filename without the extension. But when using an atlas, you might wanna use an image with a name such as "game/particle". So even if I manually change the particle file made by the particle editor and put "game/particle", the loading system will strip it to "particle", and throw an exception of a missing atlas image.

This is quite annoying, as I do not wish to change my atlas hierarchy. This commits is a simple but dirty fix for this, allowing you to pass a prefix to be added to the image name. In the example above, you'd pass "game" as a prefix.

A real fix would be to add real atlas support directly in the particle editor. I'd be glad to contribute this, but before spending any more time on it, I wanna know what you guys think