You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding new game objects, make sure they inherit from the pygame.sprite.Sprite class.
Use the pygame.sprite.Group class to manage groups of game objects.
All game objects should have a draw method.
Create a new file called game_object.py that contains a base class for all game objects. The class should be called GameObject and should inherit from pygame.sprite.Sprite.
The GameObject class should have a draw method that takes a surface argument.