Pygame Physics Engine
This is a very simple physics engine that can save you so much time when making a game that uses physics. To see how much time it saves, look at this project, made with no engine, just the pygame module:
It has over 300 lines of code! And all it does is make a square that just jumps around.
With this physics engine, I can make almost the exact same program with only 130 lines! (It can be shortened down without comments).
This project would not have been possible without mwilki7's (Look below for his profile) help. He was the one dealing with all of the physics stuff, and I was the one doing Pygame, as he doesn't have much experience with it, so thank you.
If you have any questions, feel free to ask.
@ChezCoder Thanks for helping point out a flaw in the engine (The flaw was not being able to change the velocity)
Edit: The project has been uploaded to PYPI. If you want to look at it, go to this URL to view the documentation. To install, type this in your command prompt:
python -m pip install PygamePhysics
Thanks! You also just introduced a problem to me on the engine
The problem is with collisions, if the vel is not divisible by 5, collisions don't work. For now I just made the program run faster, but to make it run at normal speed, it is going to be long fix, but thanks for making aware of that
@EthanCulp guess what, I created a pypi tutorial XD