This project provides platforming physics for a ball, as well as slopes, control blocks and enemy blocks. Make sure to use turbo mode, activated by shift-clicking the green flag. Make sure to read the full information: http://platphysproj.bitballoon.com/
Users can copy and modify the code for use in any Scratch project, or rewrite it in another programming language for personal use or non-Scratch game. Giving credit is not needed. If you want a larger ball size, please double the numbers in ball physics, except for the ones that make the ball stay in the playfield, the repeat number and the position the player returns when an enemy block is touched.