Part 4 of a series of projects that will further develop the programmed physics of bouncing balls.
Part 4 features...a second ball! The two balls are programmed not to 'overlap'; that is, to bounce off of each other if and when they touch. This script takes into account the edge of the screen as well, so neither ball is pushed beyond the limits of the screen. No walls for now! Walls for both balls will come into play (quite literally) in part 5 (hopefully). Ball 1 makes use of the arrow keys (left and right) Ball 2 makes use of the WASD keys (A for left and D for right) In addition, press 'Q' to stop the project. I use it all the time as an emergency measure to stop the project when it glitched, threatening to crash my computer :) Boing. Boing. Boing.