Can someone explain what docs mean by this? The base class for visible game objects. Derived classes will want to override the Sprite.update() and assign a Sprite.image and Sprite.rect attributes. The initializer can accept any number of Group instances to be added to. When subclassing the Sprite, be sure to call the base initializer before adding the Sprite to Groups. For example:
This is pretty basic. The class is not to be used directly, instead it's supposed to be inherited from. When inheriting, you're supposed to have your own update method and remember to fill in the attributes. A sprite can be in many groups and that's already handled by the base class. The init of your own class should do the super's init first