html5-tower-defense
html5-tower-defense copied to clipboard
mouse detection wrong if there're elements before <div id="wrapper">
For example, if you add a line of text before <div id="wrapper">:
<body id="tower-defense"> a line of text <div id="wrapper">
then within the canvas, mouse detection would be off by the height of text. I assume the same problem exists in x-direction too.