At the moment the player class is a subclass of Object. We want it to be a subclass of the Sprite class so that we can pass in a rect_list into pygame.display.update(), so we don't have to update the entire screen every frame - instead only updating that which has changed.
At the moment the player class is a subclass of Object. We want it to be a subclass of the Sprite class so that we can pass in a rect_list into pygame.display.update(), so we don't have to update the entire screen every frame - instead only updating that which has changed.
The pygame docs have some stuff on this.