Sign in to follow this  

Api to handle 2D sprites?

This topic is 4687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

is there any api which using gimp (or other program that works with Linux) i could create 2D sprites with multiple animations and frames for use in games, and will handle loading the sprite data, and have some control structure for the sprites.

Share this post


Link to post
Share on other sites
I'm not really sure about that, but I'm actually working on a library like the one you want.

Its pretty simple, but maybe it can help you.
It reads SFF files (used in mugen) and stores them as char arrays along with the palette info in other array.

Warning: It's incomplete but loads and shows images.

grab it here
It's the source code along with a test file. Sorry, no makefile here, I don't know how to use it yet. (the r and c files are bash scripts for linux).

Share this post


Link to post
Share on other sites
Actually this only handle sprite data, animation data could be handled in a different class to guarantee sprite "reusability" (you know, a sprite can be used in more than 1 animation).




Share this post


Link to post
Share on other sites
I have a free program... Sprite Slicer.

It allows Sprite Sheets to be merged, created from image sequences... it has an animation ability and it's what I have use for my upcoming game.

It has a tool...font mechanic that builds bitmap fonts from an Truetype font and is capable of making International fonts (ie. Russian, Chinese, Korean, etc).

The files it uses are in text format which should be easy to parse and thus load into your own applications.

The Unofficial version of HGE supports all the file formats internally.

It also has the ability to create "collision spheres" that allow rotated and scaled sprites to be checked for collisions very fast and accuratley.

It's a .Net application but there's no reason why the data files produces couldn't be used anywhere.

www.hoek.inkblue.net




Share this post


Link to post
Share on other sites

This topic is 4687 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this