Skip to content

Commit

Permalink
removing objects from outside the map
Browse files Browse the repository at this point in the history
  • Loading branch information
awcz committed Apr 2, 2024
1 parent 3c2a488 commit 631606f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/Scene1.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ class Scene1 : Scene() {
toRemove.add(it)
}
}
toRemove.addAll(collisionObjects.filter { v -> v.getPosition().y > 300 })
collisionObjects.removeAll(toRemove)
// TODO remove items from outside the map
}

private fun moveIfPossible(move: Point): Boolean {
Expand Down

0 comments on commit 631606f

Please sign in to comment.