► - Play - start the laser (click and drag points to move them) ▌▌ - Pause - stop the laser + - Add points by clicking on the stage ▄ - Delete points or circles by clicking on them when mouse is over >> Click again to clear all •--• - Connect two points (first point >> second point) >> Also, click on a line to switch between a reflecting and refracting surface <) - Add an arc (center >> radius and start >> end) NOT FINISHED Click near the center of the laser shooter to move it, click on the front of it to rotate it.
5/20-5/21: Working on optimizing code and fixing bugs... I'll remove this message when I'm done. So I saw all these wonderful mirror/reflection/laser projects and decided to have a go at it. I didn't want to do this the "cheap" way -- simply moving until hitting a wall. Instead, I relied on geometry/physics to quickly find where a laser hits, and then find how it reflects or refracts. It is far faster at simulating the path of the laser. Special thanks to @dapontes for line-circle intersection