"We converted Super #Mario Bros. 3 physics code into #javascript to make it easier to study… and made a demo people could play with."
You can play with the demo yourself here, https://htmlpreview.github.io/?https://github.com/velipso/smb3-physics/blob/main/index.html
Read the code and all the details here: https://github.com/velipso/smb3-physics?tab=readme-ov-file