Newbie question based on the pyglet.sprite module A: can't load the sprite module with "from pyglet import sprite"
then using the catch all code found in the first example here: http://pyglet.org/doc/1.1/api/pyglet.sprite-module.html I get this error: Traceback (most recent call last): File "C:\Wheels\bingo.py", line 9, in <module> ball_image = pyglet.image.load('player.bmp') AttributeError: 'module' object has no attribute 'image' Any ideas? I've been trying to hack the blit function to scale images for me for about a week now, this sprite module should save me a lot of guff. On Jun 17, 7:09 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote: > On 6/18/08, pauljmackay <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I have a need to render a Sprite as basic primitives. Is there any > > simple way to do this? Its currently required to supply an image when > > creating a sprite so I'm not sure if there is a means to draw a sprite > > using primitives. > > You'll need to be well-versed in OpenGL to draw the primitives; then > read up onhttp://pyglet.org/doc/1.1/programming_guide/graphics.html > for drawing within a batch object. This should be enough to get you > writing your own Sprite-like classes. I think you'll find there's > little code you can share with Sprite, unless your primitives happen > to be rectangles. > > 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 -~----------~----~----~----~------~----~------~--~---
