Collision detection in pygame
问题 I wrote a little test to get a feeling for collision detection in pygame. My players moves properly and stop at the rock, where the collision shall happen, but when I reach the rock I can't move away again. Do you guys know why this is the case? This is my test code: import pygame import sys white = (255, 255, 255) black = ( 0, 0, 0) # Player class class Player(pygame.sprite.Sprite): def __init__(self): super().__init__() self.image = pygame.image.load('../foo.png') self.rect = self.image.get