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

Function tileAt

examples/isometric-rpg/main.ts:110–113  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

108}
109
110function tileAt(x: number, y: number): number {
111 if (x < 0 || x >= MAP_W || y < 0 || y >= MAP_H) return T_WATER;
112 return map[y * MAP_W + x];
113}
114
115function setTile(x: number, y: number, t: number): void {
116 if (x >= 0 && x < MAP_W && y >= 0 && y < MAP_H) {

Callers 2

isWalkableFunction · 0.70
main.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected