Control the Circle

arrow_circle_green_up

Today we begin to work on user control of graphics objects on the screen.  Our first task is to control the movement of a circle using the mouse.  The requirements for this program are:

  • Create a window with coordinates set to (0,0) and (100,100).
  • Start a circle in the center of the window.
  • Place five buttons near the bottom of the window labelled: Quit, Up, Down, Left, Right.
  • Each time a direction button is clicked, move the circle one unit in that direction.
  • Prevent the circle from moving off the screen or over your buttons.

Please submit your progress using this submission link.