On 9/12/08, josch <[EMAIL PROTECTED]> wrote:
>
>  Hi!
>  I wanted to give a short video on how far I came with your great help
>  so that you can see that your time wasnt in vain that that now there
>  is one more out there that actively dives into pyglet :).
>
>  http://rabenfrost.net/josch/heroes/moving.ogg
>   o animated water tiles
>   o moving by keyboard (even diagonally) and by dragging the mouse
>
>  I decided not to use the resource module but to manually use a
>  TextureAtlas that is just big enough to hold all the water tiles
>  (384x416 px for 156images) with their animation frames.
>  This way I can do animation by just changing the texture coordinates
>  in the vertex lists without any additional effort (for example without
>  checking if the next animation frame is still in the same texture as
>  the last).

Sounds good.  Note that the TextureAtlas above will automatically be
sized up to 512x512 (textures usually need to have dimensions of
powers of 2), so you can use some of the extra space in there for
"free" if you need it.

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to