how can we detect side of collision in pygame code example
Example: how to do collision detection in pygame
#making stuff to collide
player=pygame.Rect(whatever you want)
villian=pygame.Rect(whatever you want)
#making the detection
if villian.colliderect(player):
print ("villian got you oh no!")#this can be something different