12 lines
198 B
JavaScript
12 lines
198 B
JavaScript
const layer = ecs.get(1).TileLayers.layer(1)
|
|
|
|
const filtered = []
|
|
|
|
for (const position of projected) {
|
|
if ([7].includes(layer.tile(position))) {
|
|
filtered.push(position)
|
|
}
|
|
}
|
|
|
|
return filtered
|