I've been working on a 2d game engine, that includes sprite animation. This is the source
http://code.google.com/p/lisp-game-engine/source/browse/trunk/sprites.lisp to use it you need to create some sprite defs that tell describe the animation (specify the coordinates of each image within a bmp) http://code.google.com/p/lisp-game-engine/source/browse/trunk/spritedefs1.lisp then there's an example of how to initialise, update and draw the animation in this clos object http://code.google.com/p/lisp-game-engine/source/browse/trunk/animatedsprites.lisp justin <http://code.google.com/p/lisp-game-engine/source/browse/trunk/sprites.lisp> 2009/12/29 Elliott Slaughter <elliottslaugh...@gmail.com> > I am not the definitive expert on this, but I don't believe Lispbuilder has > explicit support for animations. I can tell you with certainty that SDL has > no specific support for animations. > > And I wouldn't really expect them to, as animations are trivially > implemented with lists (or vectors) of images. I think that amounts to about > 20-30 lines of code in my game. > > That said, I can't tell you what the cell parameter does. Maybe Luke can > enlighten us.... > > Hope that helps. > > > On Tue, Dec 29, 2009 at 4:50 AM, Gerold Meisinger < > hasur2...@munub.e4ward.com> wrote: > >> Hello there fellow Lispers! >> >> i want to create a frame animation and i found some references to "cells" >> and "cell index" in the API which might be exactly what i need. my current >> approach is to create a list of surfaces for each animation from an image. >> >> is there some more information on cells as i found nothing about at >> lispbuilder-sdl or the official SDL documentation? >> are cells lispbuilder-sdl specific? >> >> btw there is an mistake in >> http://lispbuilder.googlecode.com/svn/trunk/documentation/lispbuilder-sdl.html#copy-surface >> &key<http://lispbuilder.googlecode.com/svn/trunk/documentation/lispbuilder-sdl.html#copy-surface&key>cell >> is actually cells >> >> >> -- >> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >> _______________________________________________ >> application-builder mailing list >> application-builder@lispniks.com >> http://www.lispniks.com/mailman/listinfo/application-builder >> > > > > -- > Elliott Slaughter > > "Don't worry about what anybody else is going to do. The best way to > predict the future is to invent it." - Alan Kay > > _______________________________________________ > application-builder mailing list > application-builder@lispniks.com > http://www.lispniks.com/mailman/listinfo/application-builder > >
_______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder