Dots fall and bounce off of the line. Only took about a week to make, this made me experiment with new code! Dots also don't collide with each-other, still a bit unrealistic. No use of "touching ___" only maths to check collisions (other than the level editor). Try this on turbo mode. Turbowarp:https://turbowarp.org/1315020871
https://www.youtube.com/watch?v=nXrEX6j-Mws Helped me make this. It showed how dot products work. I only now realised how amazing dot products are! Also used pythagoras theorem and orientation formula Dot product: ((x1 * x2) + (y1 * y2)) Pythagoras theorem: sqrt((x1 - x2)^2) + ((y1 - y2)^2)) Orientation formula: atan((y2 - 1) / (x2 - x1)) Update log: Added balls, gravity Added floor Balls collide with floor Angled floor Multiple floors Added momentum 100x more accurate, I did the maths and also 100x more lag but i have 2GB of ram and it run at 30FPS with 100 balls Fixed hitboxes Optimisation 5x Fixed bug where balls would only bounce on one side of the wall. Example: a ball is moving towards the left side of the wall, the wall is facing right, the ball goes straight through. Optimised it a bit, when a collision with a ball and a wall was detected, instead of adding more and more distance between the wall and the ball until the ball was not colliding with the wall. Now it works out the exact distance to move the ball from the wall!