starshipmeteors pygame moving the meteors we now want to be able to move the meteors down the screen so that the starship has some objects to avoid we can do this very easily as we have already implemented move_down(method in the meteor class we therefore only need to add for loop to the main game playing while loop that will move all the meteors for examplemove the meteors for meteor in self meteorsmeteor move_down(this can be added after the event processing for loop and before the screen is refreshed/redrawn or updated now when we run the game the meteors move and the player can navigate the starship between the falling meteors identifying collision at the moment the game will play for ever as there is no end state and no attempt to identify if starship has collided with meteor we can add meteor/starship collision detection using pygame rects as mentioned in the last rect is pygame class used to represent rectangular coordinates it is particularly useful as the pygame rect class provides several collision detection methods that can be used to test if one rectangle (or pointis inside another rectangle we can therefore use one of the methods to test if the rectangle around the starship intersects with any of the rectangles around the meteors