I'm trying to create a simple game for matching colors, and I want to find a way to select groups of blocks of the same color.
This is fiddle. I work, and if you run it, you will see that there are problems when I try to mouse over the elements around the edges of the game area, telling me that it is trying to use undefined variables
If you note below, in the function parse_quad_tree()you will see that I am handling the case of undefined vars, but since it slows down, it means that I’m wrong somewhere ...
thank you for your time
source
share