17 lines
280 B
JavaScript
17 lines
280 B
JavaScript
for (const [{tags}] of intersections) {
|
|
if (tags && tags.includes('door')) {
|
|
if (other.Player) {
|
|
ecs.switchEcs(
|
|
other,
|
|
entity.Ecs.path,
|
|
{
|
|
Position: {
|
|
x: 72,
|
|
y: 304,
|
|
},
|
|
},
|
|
);
|
|
}
|
|
}
|
|
}
|