Challenges 3
challenge 1 - draw 3 simple shapes in a row onto a new pygame app:
- a red square (use pygame rect)
- a green triangle (use pygame polygon with 3 points)
- a blue circle (use pygame circle)
challenge 2 - from your program in challenge 1, make these changes:
- make the red square turn blue on mouse hover (back to red when mouse is off square)
- make the green triangle turn orange on keydown spacebar (back to green when key spacebar is lifted)
- make the blue circle flash red and blue automatically every second
challenge 3 - from your program in challenge 2, use headphones to make these changes:
- make the red square play a sound or music repeatedly on mouse hover only
- make the green triangle play a sound effect once only on keypress spacebar
- make the blue circle disappear after 10 seconds OR once the right mouse button has been clicked