[Advice] Managing the background in 2d Space shooter

Hi everyone,

For my first game I want to build a sort of asteroids clone, but with asteroids replaced with spaceships. The player controls a ship which can move freely around the play space and enemies are spawn periodically and converge to the player’s position, shooting at it. You can try a first version here.

However, I don’t know how to handle the “world bounds”. At the moment the player stops at the world bounds, which looks weird. Having the camera follow the player around but I don’t know how to handle the background - it’s a single image, so it will slip out of view.

Thank you for your ideas.

Answering myself:

I found this tutorial which describes how to implement an infinite scrolling background.