draw the block onto the surface windowsurface blit(playerstretchedimageplayer check if the block has intersected with any food squares for food in foods[:] if player colliderect(food) foods remove(food player pygame rect(player leftplayer topplayer width player height playerstretchedimage pygame transform scale(playerimage(player widthplayer height) if musicplaying pickupsound play( draw the food for food in foods windowsurface blit(foodimagefood draw the window onto the screen pygame display update( mainclock tick( figure - an altered screenshot of the sprites and sounds game setting up the window and the data structure most of the code in this program is the same as the collision detection program in the previous we'll focus only on the parts that add sprites and sound pygame display set_caption('sprites and sound'post questions to