Sure, here's an example of a simple Marble Run game implemented as a single HTML file using JavaScript:
Marble Run
This code will create a simple game where the user controls a marble using their smartphone's tilt. The marble will move on the screen, and if it collides with the obstacle, it will stop.