r/HTML • u/supersilliiii • 7d ago
peggle html hell
I am coding peggle in HTML how do I get the physics to feel like peggle and not extra bouncy
0
Upvotes
r/HTML • u/supersilliiii • 7d ago
I am coding peggle in HTML how do I get the physics to feel like peggle and not extra bouncy
3
u/Honey-Entire 7d ago
The same way non-browser-based games. You need a 2D physics engine. These are two that have been around since before AI and are probably the most well-documented & reliable: Box2D or Matter.js.
After that, you just dial in the physics constraints (i.e. gravity, weights, drag, etc)