Tracking Objects
Category:
Experimental, Python
DATE:
A simple Pygame program that uses concepts such as acceleration, velocity, and displacement to create several tracking objects that home in on the user's mouse. Each tracker moves towards the mouse, accelerating and adjusting course if it overshoots (which it constantly does because of the way acceleration and velocity work). If it hits an edge, it loops around to the other side of the screen. Right clicking at any time resets the velocities of all objects and freezes them until the right mouse button is no longer held.
The program itself has no goal. It is merely a showcase of how to build tracking objects for other games in Pygame.
Image: Flaticon