[SDL] bmp sprite maps

Joshua Shriver jshriver at gmail.com
Sat Apr 26 11:10:39 PDT 2008


Thank you, I'm still at the beginner stage of learning and didn't realise
you could give give x/y slices. Since the image I want to use is exact sizes
16x16 it should make it easy to determing the corners. I'll tinker around
and see what I can do.

Thanks,
Josh

On Sat, Apr 26, 2008 at 1:42 PM, Mason Wheeler <masonwheeler at yahoo.com>
wrote:

> 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
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080426/9dd2dcef/attachment.htm 


More information about the SDL mailing list