I am running python 2.7 and have just installed pyglet 1.1.4. Unfortunately 
I cannot get any sprites to display, even the example files do not display 
images that are drawn using the sprite.draw() method. Images that are 
blitted directly to the screen are visible without issue. For example, the 
code below will correctly display the image blitted at (0, 0) but not 
displayed at (400, 300) . Again, images are not visible in the supplied 
example files as well. The programs run without error just no images are 
visible. Any suggestions would be appreciated.

import pyglet

window = pyglet.window.Window(800,800)

image = pyglet.resource.image('plane.png')
player_ship = pyglet.sprite.Sprite( img=image, x=400, y=300)

@window.event
def on_draw():
    window.clear()
    player_ship.draw()
    image.blit(0,0)

pyglet.app.run()

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to