PDA

View Full Version : Sprite map builder?



Christian Knudsen
17-06-2009, 08:10 PM
I'm playing around with SDL and sprites and I'm going to make a sprite map of all my sprites. Instead of figuring out the optimal placement of sprites on the sprite map manually, does anybody know of a program (preferably free!) that can do it for me? Googling turned up a program called Sprite Builder, but none of the many links actually lead to a working download site.

WILL
18-06-2009, 05:01 AM
You can try Tile Studio? http://tilestudio.sourceforge.net/

paul_nicholls
18-06-2009, 06:41 AM
I'm playing around with SDL and sprites and I'm going to make a sprite map of all my sprites. Instead of figuring out the optimal placement of sprites on the sprite map manually, does anybody know of a program (preferably free!) that can do it for me? Googling turned up a program called Sprite Builder, but none of the many links actually lead to a working download site.


Hi :)
Are you talking about trying to fit all sprites into a larger rectangle?

If so, you can try my image packer program I wrote:

http://www.pascalgamedevelopment.com/forum/index.php?topic=4974.0

It allows you to import and pack multiple smaller images into one big image which you can then export as a single image.

You can also save as xml or ini, the locations in the larger rectangle of all the smaller sprites for easy access later on :)

cheers,
Paul

Christian Knudsen
18-06-2009, 09:59 AM
That seems to be what I'm looking for, paul. I'll take a look at it. Thanks!

Christian Knudsen
18-06-2009, 10:19 AM
That's a very cool program, paul. It works perfectly, except it would be nice if the "packed image" tab used the source file names instead of "Image#0", "Image#1" and so on, which forces me to figure out manually which image has been placed where.

paul_nicholls
18-06-2009, 10:58 AM
That's a very cool program, paul. It works perfectly, except it would be nice if the "packed image" tab used the source file names instead of "Image#0", "Image#1" and so on, which forces me to figure out manually which image has been placed where.


I just updated the online code with the latest source + exe.

Try it again...I obviously hadn't uploaded the latest version, sorry.

http://fpc4gp2x.eonclash.com/downloads/Image Packer.7z

cheers,
Paul

Christian Knudsen
18-06-2009, 11:08 AM
That seems to be the same, v0.1. It still says "Image#0" and so on.

paul_nicholls
18-06-2009, 12:46 PM
try this one

http://fpc4gp2x.eonclash.com/downloads/imagepacker.exe

Somehow the ftp or something got confused when I tried reloading it :(

cheers,
Paul

Christian Knudsen
18-06-2009, 01:07 PM
Absolutely awesome! This does everything I was hoping to find. Thanks a bunch!

paul_nicholls
18-06-2009, 01:27 PM
Absolutely awesome! This does everything I was hoping to find. Thanks a bunch!


Glad I could help :)

cheers,
Paul

Christian Knudsen
18-06-2009, 07:47 PM
In case you're interested in what I'm using your program for, here's a small test I've whipped together for Windows:

http://www.megaupload.com/?d=NARG4UFU

It uses SDL, SDL_image and your files2pas program. All required dll's are included. All you can currently do is rotate a sprite of an X-wing. :)

paul_nicholls
18-06-2009, 10:41 PM
In case you're interested in what I'm using your program for, here's a small test I've whipped together for Windows:

http://www.megaupload.com/?d=NARG4UFU

It uses SDL, SDL_image and your files2pas program. All required dll's are included. All you can currently do is rotate a sprite of an X-wing. :)


Neat! I like the way the x-wing rotates slightly when you rotate it :)

cheers,
Paul