Homework assignment #2
Please modify the Jumping ball example to provide the following options:
- User can specify the number of balls (no more than 5).
- Each ball has to have its own timer.
- User should be able to control the speed of any ball separately.
- The form should correctly react on resizing. To control the resizing do the following:
- Click on the main from of the program
- In the property window click on the Events icon
- In the list of events double click on Resize event.
- You'll get into the method which gets execute every time a user changes the size of the program window. In this
method you should take care about the location and sizes of all visible elements of your form. You also can change
the size of the window itself if user makes it too small.
Extra credit:
- try to use different brushes for creating your balls.
- try to come up with an algorithm that changes directions of the balls if they hit each other.