Hi Elliott To get the colour at a certain pixel you should use the SDL function
void SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b); Anthony posted a HOWTO on making a CLISP executable. Does that work for you apart from when you use ttf stuff? We don't have collision detection routines built in. Justin On 07/10/2007, Elliott Slaughter <[EMAIL PROTECTED]> wrote: > I recently started trying to write a 2D RPG in Lisp using lispbuilder-sdl, > and I have a few questions about how to code some functionality. > > I would like to be able to set a colorkey based on the color of a surface at > a given point (typically (0, 0)). In pygame or rubysdl I would do this by > reading the color at the point and then setting the colorkey to that color, > but I can't find any function in the documentation online for getting the > color at a point. If you could tell me what that function is called, or how > to do this, I would appreciate it. > > I am wondering if lispbuilder-sdl provides any collision detection > functionality? I know that pygame provides bounding box checking, and > rubysdl provides pixel-perfect collision detection, but I haven't found > anything like that in lispbuilder-sdl yet. Again any information would be > appreciated. > > Finally, I want to be able to distribute my game as an executable (for > Windows users), so I have found I need to put the following code into my > program to get the dlls to load properly at runtime (in Clisp): > (cffi:define-foreign-library sdl > (t (:default "SDL"))) > (cffi:use-foreign-library sdl) > but for some reason this doesn't work when I try to integrate > lispbuilder-sdl-ttf and the SDL_ttf.dll file. Thanks again. > > -- > Elliott Slaughter > > "Any road followed precisely to its end leads precisely nowhere." - Frank > Herbert > _______________________________________________ > application-builder mailing list > [email protected] > http://www.lispniks.com/mailman/listinfo/application-builder > > _______________________________________________ application-builder mailing list [email protected] http://www.lispniks.com/mailman/listinfo/application-builder
