the gameobject class return pygame rect(self xself yself widthself heightdef draw(self)""draw the game object at the current xy coordinates ""self game display_surface blit(self image(self xself )the gameobject class is directly extended by the starship class and the meteor class currently there are only two types of game elementsthe starship and the meteorsbut this could be extended in future to planetscometsshooting stars etc displaying the starship the human player of this game will control starship that can be moved around the display the starship will be represented by an instance of the class starship this class will extend the gameobject class that holds common behaviours for any type of element that is represented within the game the starship class defines its own __init__(method that takes reference to the game that the starship is part of this initialisation method sets the initial starting location of the starship as half the width of the display for the coordinate and the display height minus for the coordinate (this gives bit of buffer before the end of the screenit then uses the load_image(method from the gameobject parent class to load the image to be used to represent the starship this is held in file called starship png for the moment we will leave the starship class as it is (however we will return to this class so that we can make it into movable object in the next sectionthe current version of the starship class is given belowclass starship(gameobject)""represents starship""def __init__(selfgame)self game game self display_width self display_height self load_image('starship png'