please help, im trying to get an image to draw itself multiple times
(so it looks like there are more then one images) but all with
different y coordinates.
(like a classic space invaders game kinda)
so i tried to make an array for the 'monsters'...
when i do this none of the monsters showup on the screen..
please help :)

[tt]

import pyglet
import random

monster = pyglet.image.load('monster.png')
window = pyglet.window.Window(500, 500)
map = pyglet.image.load('map.png')

monsters = []

@window.event
def on_draw():
        window.clear()
        if (len(monsters)) < 10:
                for M in monsters:
                        monsters.append(monster(x= 200,
y=random.randint(20, 480)))
                        monsters.M.draw()
        map.blit(0, 0, 0)

pyglet.app.run()
[/tt]

thanks! and sry , i dont know how to display this code better on here..

-- 
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