silphius/public/assets/shit-shack/collision-start.js
2024-07-12 17:41:55 -05:00

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,
},
},
);
}
}
}