Pyxel Studio

Ball Physics
Description
Original code by Pezzza's Works (https://youtu.be/lS_qeBy3aQI?feature=shared), it uses Verlet integration to perform the physics.
Adapted to pyxel and modified by Sychamis.
Documentation
Left click to place a random ball at the pointer's location, right click to remove any ball the pointer hovers.

You can change parameters such as gravity, the number of substeps and deltatime in the code.
  • app.py
  • screenshot.png