pygame init( set up the window windowwidth windowheight windowsurface pygame display set_mode((windowwidthwindowheight) pygame display set_caption('animation' set up direction variables downleft downright upleft upright movespeed set up the colors black ( red ( green ( blue ( set up the block data structure {'rect':pygame rect( )'color':red'dir':upright {'rect':pygame rect( )'color':green'dir':upleft {'rect':pygame rect( )'color':blue'dir':downleft blocks [ run the game loop while true check for the quit event for event in pygame event get() if event type =quit pygame quit( sys exit( draw the black background onto the surface windowsurface fill(black for in blocks move the block data structure if ['dir'=downleft ['rect'left -movespeed ['rect'top +movespeed if ['dir'=downright ['rect'left +movespeed ['rect'top +movespeed post questions to