Sure! Here's a simple 3D running game implemented as a single HTML file using JavaScript and enclosed in script tags. The game is designed for smartphone operation and uses pictograms for visuals. You can play it as a finished game:
To play the game, save the above code as an HTML file, open it in a browser, preferably on a smartphone, and you will have a simple 3D running game using JavaScript and displayed using HTML5 canvas. Use the space bar to make the player character jump over the oncoming obstacle. Avoid colliding with the obstacle, and try to achieve a high score by surviving as long as possible. Enjoy the game!