File perms

This commit is contained in:
Kim Ravn Hansen
2025-10-15 12:28:14 +02:00
parent e12dfd0981
commit 59d73955d0
21 changed files with 202 additions and 111 deletions

View File

@@ -149,14 +149,19 @@ export class TileMap {
}
behavesLikeFloor(x, y) {
console.log("behavesLikeFloor???", { x, y });
x |= 0;
y |= 0;
if (x < 0 || x >= this.width || y < 0 || y >= this.height) {
console.log(" behavesLikeFloor: YES");
return true;
}
return this.tiles[y][x].isFloorlike();
const result = this.tiles[y][x].isFloorlike();
console.log(result ? " YES" : " NOPE");
return result;
}
/**