(x: number, y: number)
| 108 | } |
| 109 | |
| 110 | function 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 | |
| 115 | function setTile(x: number, y: number, t: number): void { |
| 116 | if (x >= 0 && x < MAP_W && y >= 0 && y < MAP_H) { |
no outgoing calls
no test coverage detected