In this project, I have tried to simulate how a ball would bounce against the surface of any given slope. You can drag and fling the ball to different locations using the mouse to try out different speeds and directions against different lines. At the top of the screen are three variables you can change (gravity affects the y-axis pull, friction affects the x-axis slide, and bounce reduction affects how the speed decreases during a bounce). The R key resets these. There are also different maps that you can toggle through using the right and left arrow keys. The fifth map is blank, but you can press space to enter edit mode. This pauses ball movement and allows you to draw in lines by dragging them. Lines cannot be drawn on the ball, on the spawn, or near the variables. In this mode, the U and R keys can undo and redo lines drawn. Pressing space again exits this mode.
This project was made 100% by myself. Please note that it has extreme lag in fullscreen mode or on a slow computer. Love, favorite, or maybe even suggest a feature at scratch.mit.edu/discuss/topic/198735/