Racey – Drawing Objects

STEP Six-A

def things(thingx, thingy, thingw, thingh, color):
    pygame.draw.rect(gameDisplay, color, [thingx, thingy, thingw, thingh])

STEP Six-B

#thing dimensions
    thing_startx = random.randrange(0, display_width)
    thing_starty = -600
    thing_speed = 7
    thing_width = 100
    thing_height = 100
 
##########################################################
##                                                      ##
##      Replace this with Code from Step EIGHT-B        ##
##                                                      ##
##########################################################

STEP Six-C

# things(thingx, thingy, thingw, thingh, color)
        things(thing_startx, thing_starty, thing_width, thing_height, black)
        thing_starty += thing_speed

Now run your code.

You will now see ONE obstacle moving down the screen