MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / isVisible

Function isVisible

examples/dungeon-crawl/main.ts:68–71  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

66}
67
68function isVisible(x: number, y: number): boolean {
69 if (x < 0 || x >= MAP_WIDTH || y < 0 || y >= MAP_HEIGHT) return false;
70 return visible[y * MAP_WIDTH + x];
71}
72
73function isExplored(x: number, y: number): boolean {
74 if (x < 0 || x >= MAP_WIDTH || y < 0 || y >= MAP_HEIGHT) return false;

Callers 2

tryMoveFunction · 0.85
main.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected