Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomhausen committed Dec 5, 2024
1 parent e18510b commit 637f998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SpritesAdvanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ namespace spriteutils {
game.onUpdate(() => {
for (let sprite of sprites.allOfKind(kind)) {
if (sprite.left <= scene.cameraProperty(CameraProperty.Left) ||
sprite.right <= scene.cameraProperty(CameraProperty.Right) ||
sprite.right >= scene.cameraProperty(CameraProperty.Right) ||
sprite.top <= scene.cameraProperty(CameraProperty.Top) ||
sprite.bottom <= scene.cameraProperty(CameraProperty.Bottom)) {
handler
sprite.bottom >= scene.cameraProperty(CameraProperty.Bottom)) {
handler(sprite)
}
}
})
Expand Down

0 comments on commit 637f998

Please sign in to comment.