Commits

Anonymous committed 38a4258

spritecollideany works as doc'd

  • Participants
  • Parent commits 4b7ba49

Comments (0)

Files changed (3)

 # BREAK = change breaks existing code
 # BUG	= fixed a bug that was (or could have been) crashing
 
+March 20, 2002
+	sprite.spritecollideany() now works as described
+
 March 4, 2002
         sprite.RenderClear can accept a function as bgd
 

docs/ref/pygame_sprite.html

        bit quicker.
        
        all sprites must have a "rect" method, which is a
-       rectangle of the sprite area. if the dokill argument
-       is true, the sprites that do collide will be
-       automatically removed from all groups.
+       rectangle of the sprite area.
 </ul><br>&nbsp;<br>
 
 
        bit quicker.
        
        all sprites must have a "rect" method, which is a
-       rectangle of the sprite area. if the dokill argument
-       is true, the sprites that do collide will be
-       automatically removed from all groups."""
+       rectangle of the sprite area.""" 
     spritecollide = sprite.rect.colliderect
     for s in group.sprites():
         if spritecollide(s.rect):
-            return 1
-    return 0
+            return s
+    return None