True position added to velocity plus speed equals the new true position of the ball
Here is my ball class in a pong game I made as an example. In one phase of the game, there are ghost balls which spawn at random locations and at different speeds. So the class is made to handle different ball objects.
https://github.com/metulburr/pong/blob/7...all.py#L89
Here is my ball class in a pong game I made as an example. In one phase of the game, there are ghost balls which spawn at random locations and at different speeds. So the class is made to handle different ball objects.
https://github.com/metulburr/pong/blob/7...all.py#L89
Recommended Tutorials: