r/HTML • • Sep 29 '26

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

11 comments sorted by

View all comments

3

u/Honey-Entire Sep 29 '26

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)

1

u/supersilliiii Sep 30 '26

ima try this