the ship the game_functions module also contains update_screen()which redraws the screen on each pass through the main loop ship py the ship py file contains the ship class ship has an __init__(methodan update(method to manage the ship' positionand blitme(method to draw the ship to the screen the actual image of the ship is stored in ship bmpwhich is in the images folder try it yourse lf - rocketmake game that begins with rocket in the center of the screen allow the player to move the rocket updownleftor right using the four arrow keys make sure the rocket never moves beyond any edge of the screen - keysmake pygame file that creates an empty screen in the event loopprint the event key attribute whenever pygame keydown event is detected run the program and press various keys to see how pygame responds shooting bullets now let' add the ability to shoot bullets we'll write code that fires bullet ( small rectanglewhen the player presses the spacebar bullets will then travel straight up the screen until they disappear off the top of the screen adding the bullet settings firstupdate settings py to include the values we'll need for new bullet classat the end of the __init__(methodsettings py def __init__(self)--snip-bullet settings self bullet_speed_factor self bullet_width self bullet_height self bullet_color these settings create dark gray bullets with width of pixels and height of pixels the bullets will travel slightly slower than the ship ship that fires bullets