A program simulation to learn pygame :p
It creates a circle object, for simplicity of the program we are having 2 circles on a 800 * 800 window.
Class methods for Circle()
:
drawCircle()
: It draws the circle with the given coordinates on the pygame window.moveCircle()
: It increases the x and y coordinates of the circle with the given velocities.
checkCollision()
It checks for collision between the two circles
Here collision means: if the distance between the radii of the two circles is less than or equal to the sum of their radii