johneastman / circles

A point-and-click browser game
https://johneastman.github.io/circles/
MIT License
0 stars 0 forks source link

Handle Circles Outside Canvas #38

Closed johneastman closed 1 year ago

johneastman commented 1 year ago

Sometimes, circles end up outside the bounds of the canvas, but we have no check for this because circles are never supposed to leave the canvas. Add a check, either at regular intervals or in checkEdges that removes circles outside the bounds of the canvas.

johneastman commented 1 year ago

Commit: https://github.com/johneastman/circles/commit/e4ed4939005abe99a9020624514bdd7eae75aace

🤞 this fixed the bug