Infinite Grid (Phaser 3)

This gives the illusion of an infinite-sized grid background.

It’s done by creating a Grid slightly larger than the camera viewport (padded by one cell at the right and bottom edges) with scroll factor (0, 0). Then the Grid is shifted in sync with the camera scroll.

1 Like