Re: [Super-tux-devel] Sprites image
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2004-04-10 15:02:36
|
Em Sexta, 9 de Abril de 2004 19:24, o Ingo Ruhnke escreveu: > Ricardo Cruz <ri...@ae...> writes: > > 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? > > No, not really. Having frames in seperate images is perfectly fine and > since its already the way it is, it should stay that way. However what > we really need is a way to define sprites in a file, something ala: > > (sprite > (name "foo") > (fps 20) > (type 'loop) > (image (file "foo1.png") (alignment 10 10)) > (image (file "foo2.png") (alignment 10 20) (hflip #t)) > (image (file "foo3.png"))) > > So that the game code only needs to do a Sprite("foo") and not > hardcode all the images, alignment and frame-rate stuff into the code, > which makes it quite hard to tweak animations and alignment. If needed > one could easily add support for one-file animations to such an > approach. You won, I agree ;) > Another thing that would be interested would be support for > flipping the sprite at load time, instead of keeping a flipped version > on the disk. > Don't forget that we will have different Tilesets, so it would be crazy to load them all. The level should ask for the tilesets during run-time, as it is currently. -- Teutonic: Not enough gin. |