Sure! Here's an example implementation of a simple game using JavaScript that meets your requirements:
In this game, you'll see a black rectangle representing the player walking from left to right on the screen. When the player reaches the right edge of the screen, it will be teleported back to the left edge, creating the illusion of continuous walking.
Please note that this is a basic example to demonstrate the concept, and you can modify and enhance it further according to your requirements.