Wrap around background game like flicky

Godot Version

4.3

Question

I am looking to build a game similar to thr genesis classic flicky. (https://youtu.be/xo5rP3VtY1g?si=lFEmoMgLnGxZDvsh)

The camera follows the player, and the background scrolls behind them. I have done lots of research with various game engines to acheive this and yet to find any. Lots of people have wrapping/looping scenes (flappy bird style) but this is different, this is the whole world loading infinity and importantly the enemies and items remaining persistent too.

So its kind of like snake but the camera follows the player rather than it being fixed.

Any thoughts on what i should google or how i an acheive this are appreciated.

That’s really cool.

I wonder if it’s best to set everything up as nodes rather than a texture and use VisibleOnScreenNotifier2D to detect if the node is on screen. When it isn’t it could emit a signal which moves it’s x position to the opposite side. With a bit of buffer either side you shouldn’t see the objects appear/disappear.