For an infinite world, it is often preferred to move everything else around the player, instead of the player object itself.
The player stays in the middle of the layout (which would be maybe 2-3 times the size of the viewport). The layout can contain what is active in your world (known as a reality bubble in some games). Things outside the layout can be destroyed and recreated when approached by generating it again from the seed.
If the world is modifiable by the player, you would additionally need to keep track of the difference between default state and current state of objects, such as if a tree got chopped down.