I'm sorry there's a bug with the viewport. Currently, bullets are supposed to despawn when they go off the screen. However, it seems this feature works only in fullscreen mode with F11. I'm working on rewriting the code to address this issue. The fix will involve updating the logic so that bullets despawn when they go outside the level instead of the viewport.
Edit: - Fixed