well its because you are trying to create new instances from an instance,
instead of the class.
move the monster definition to inside the loop:
for i in xrange(10):
monster = pyglet.sprite.Sprite(pyglet.image.load('monster.png', x = 480,
y = random.randint(20, 480)))
monsters.append(monster)
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyglet-users/-/k8b3Vk9in_UJ.
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.