On 6/7/08, sunetos <[EMAIL PROTECTED]> wrote: > > Thanks for the replies! To answer Brian, we have a game server with > an established protocol, whose "game space" involves a tiled map with > the origin in the upper-left corner. Also, objects are 2d image > sprites, and by default they draw from the upper-left down (although > passing in an origin offset to the Image fed to pyglet's Sprite could > solve that part of the problem). The ideal scenario is to have my > pyglet sprites (animated and non-animated, we use sprite sheet > animations) to "just work," in the same coordinate system as the > server, and to have the transformation into OpenGL space happen just > before rendering. This way I could, for example, make a mouse hover > show a watch window with the x & y coordinates of that sprite, in game- > space, with minimal effort. I apologize for posting such a vague > question; if sample code or a screenshot would be better let me know. > Thanks again! >
You might find the anchor_[xy] properties on Label and AbstractImage useful, as well as the get_transform() method of AbstractImage. 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 -~----------~----~----~----~------~----~------~--~---
