This commit is contained in:
2026-01-16 20:56:16 -06:00
parent 9f6435ece9
commit 22962bbd63
33 changed files with 643 additions and 315 deletions

View File

@@ -72,7 +72,7 @@ function handleMouseButtonDown(e) {
var mx = e.mouse.x;
var my = e.mouse.y;
var c = [number.floor(mx / 60), number.floor(my / 60)];
var c = [floor(mx / 60), floor(my / 60)];
if (!grid.inBounds(c)) return;
var cell = grid.at(c);
@@ -103,7 +103,7 @@ function handleMouseButtonUp(e) {
var mx = e.mouse.x;
var my = e.mouse.y;
var c = [number.floor(mx / 60), number.floor(my / 60)];
var c = [floor(mx / 60), floor(my / 60)];
if (!grid.inBounds(c)) {
holdingPiece = false;
return;
@@ -138,7 +138,7 @@ function handleMouseMotion(e) {
var mx = e.pos.x;
var my = e.pos.y;
var c = [number.floor(mx / 60), number.floor(my / 60)];
var c = [floor(mx / 60), floor(my / 60)];
if (!grid.inBounds(c)) {
hoverPos = null;
return;