Matter.js for Pong
04:31 07 Dec 2025

I've been trying to recreate pong (1972) using matter.js for one of my midterms, and I've been stuck on how to get the ball to move around. I've been having a look at the demos on the website, and from what I understand I need to kind of combine the collision physics, friction and gravity to best simulate brownian motion. Though if there are better suggestions than this I'll be sure to try them out.

Sorry if this is not well-formatted, it's my first time here ;;

javascript matter.js