Sorry about that. The line drawing and collision detection with it could be optimized a lot. The native builds should have better perf as the web one is single threaded while the other ones can do multithreading.
It's fine 😅 Making a game in such little time can be stressful, and I couldn't make a game like this! Heck, I've only ever made scratch games, so you not perfectly optimizing this game is fine. If you know how to optimize this better, update it in the future once voting is over.