Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pygame check collision

def is_collided_with(self, sprite):
    return self.rect.colliderect(sprite.rect)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pygame #check #collision
ADD COMMENT
Topic
Name
4+2 =