我正在做一个简单的platformer游戏,当我使用pygame.surface.blit()添加背景时,它会导致很多延迟,但是当我使用pygame.suface.fill()时,它的运行速度是~120fpsfinished:
exiCheck() surface.blit(bg1Tiles[0], b
上面写着“blit的无效位置”。不过,我不知道该把布利特放在哪里,否则。我不知道该怎么办,因为我还在学习。在添加副本之前,代码很好。不知道为什么会有什么改变。 screen.blitPlayer(): screen.blit(player_img,(playerx,playery))
def player