starshipmeteors pygame define default rgb colours background ( if you want to use different background colour then change this global value adding meteor class the meteor class will also be subclass of the gameobject class howeverit will only provide move_down(method rather than the variety of move methods of the starship it will also need to have random starting coordinate so that when meteor is added to the game its starting position will vary this random position can be generated using the random randint(function using value between and the width of the drawing surface the meteor will also start at the top of the screen so will have different initial coordinate to the starship finallywe also want our meteors to have different speedsthis can be another random number between and some specified maximum meteor speed to support these we need to add random to the modules being imported and define several new global valuesfor exampleimport pygamerandom initial_meteor_y_location max_meteor_speed we can now define the meteor classclass meteor(gameobject)""represents meteor in the game ""def __init__(selfgame)self game game self random randint( display_widthself initial_meteor_y_location self speed random randint( max_meteor_speedself load_image('meteor png'def move_down(self)""move the meteor down the screen ""self self self speed if self display_heightself def __str__(self)return 'meteor(str(self 'str(self ')