[SDL] bmp sprite maps

Mason Wheeler masonwheeler at yahoo.com
Sat Apr 26 10:42:39 PDT 2008


It's not that tough.  You just need to set up a library that defines a record/object for the sprite sheet and keeps track of the sprite sizes, and use SDL_BlitSurface with the right rectangle coordinates from the source image.

I'm actually in the middle of writing a library like that.  Won't do too many of the people on this list any good, though, since it's in Object Pascal.  But if you need advice on general principles I can help you out.


----- Original Message ----
From: Joshua Shriver <jshriver at gmail.com>
To: A list for developers using the SDL library. (includes SDL-announce) <sdl at lists.libsdl.org>
Sent: Saturday, April 26, 2008 10:38:39 AM
Subject: [SDL]  bmp sprite maps

How can you use a single bmp image as a sprite map and seperate them out into individual surfaces?

-Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080426/3d286cfd/attachment.htm 


More information about the SDL mailing list