[Super-tux-devel] Sprites image
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2004-04-09 17:59:34
|
Currently, each frame of a sprite has its own file. IMO, it would be much better to put all frames together and tell the class the number of frames and draw only a part. I think this is the way most games use. It would avoid to have images frames hardcoded, since we then could have a file for each sprite, with info like the number of frames or not... :) Anyway, I can do the coding for that, but the hard work will be to put frames together in one file... Not really hard work (it's really simple), but can take time. Well, but I could do that. So, do you agree with this? (another thing, there should be also a base class, called maybe Sprite, that would be inherited by BadGuy and Player). Ricardo Cruz -- Anyone can do any amount of work provided it isn't the work he is supposed to be doing at the moment. -- Robert Benchley |