(x: number, y: number)
| 119 | } |
| 120 | |
| 121 | function isWalkable(x: number, y: number): boolean { |
| 122 | const t = tileAt(x, y); |
| 123 | return t !== T_WATER && t !== T_WALL; |
| 124 | } |
| 125 | |
| 126 | function tileColor(t: number): Color { |
| 127 | if (t === T_GRASS) return { r: 80, g: 160, b: 60, a: 255 }; |
no test coverage detected