revert "disable collision to fix pathfinding phasing through walls"

This reverts commit f48a6bf9aa.
This commit is contained in:
2024-12-25 09:36:34 +09:00
parent 2570f32592
commit 5acc827f7b
4 changed files with 28 additions and 71 deletions
-10
View File
@@ -52,14 +52,6 @@ app.listen(port, () => {
entity2.radius = 50
game.spawn_entity(entity2)
// const triangle = new Terrain([
// { x: 400, y: 200 },
// { x: 400, y: 600 },
// { x: 600, y: 300 },
// ])
// triangle.id = 'triangle'
// game.add_terrain(triangle)
const horseshoe = new Terrain([
{ x: 400, y: 200 },
{ x: 600, y: 200 },
@@ -115,7 +107,5 @@ app.listen(port, () => {
pole.id = 'pole'
game.add_terrain(pole)
entity1.moveAction(entity1.x + 600, entity1.y)
game.start()
})