CoilBrew / sidescroller

0 stars 0 forks source link

Subclass Player class with the Sprite class #5

Closed chrisgrounds closed 6 years ago

chrisgrounds commented 7 years ago

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.

chrisgrounds commented 6 years ago

Screw this for now.