http://blog.gmane.org/gmane.comp.python.pygame
You can view everything there
Follow up with this
if len(colliding_with) is not 0:
for sprite in colliding_with:
#will go through each sprite in colliding_with
#if your sprite has a unique ID like self.id try printing
print sprite.id
colliding_with = pygame.sprite.spritecollide(x,y, 0)
colliding_with is a list of all objects x is colliding in y
Toni, you make a good argument, but some of your points are a bit
misleading. As for games not needing a lot of resources, your kind of off.
Only reason ps3s have 512MB is that it doesn't have to worry about the many
processes a computer OS requires. Plus the ram is top of the line (gddr3 /
xdr)
Diagonal collision detection seems to get a lot of people including myself
the first time. If you haven't fixed it yet, the remedy will most likely
require you to do 2 collision detections instead 1. Without looking at your
code, I'm gonna assume your doing collision detection on both axis at
Have you tried
if event.type == pygame.QUIT:
sys.exit()
On Tue, Apr 28, 2009 at 1:22 AM, Thadeus Burgess thade...@thadeusb.comwrote:
Is there any reason pygame.quit() hangs the application up?
I am running python 2.6 on Ubuntu.
It works on python 2.6 in windows.
What, if any information
If the problems fixed, yay. If not, you should put up most/all your source
so it's easier for people to see whats happening.
Yea... Jakes method would do.. or you can just simplify it
spaceship_speed = 10
if keys[K_LEFT]:
x_move += -spaceship_speed
if keys[K_RIGHT]:
x_move += spaceship_self.speed
rect = rect.move(x_move, 0)
BTW... spaceship.speed=(spaceship.speed[0]-10, spaceship.speed[1]) is
unnecessary. No