Sure! Here's a simple rooftop running game implemented as a single HTML file:
This game is a simple rooftop running game where the player (represented by a square) runs from left to right on a rooftop. The player's position is updated in the `update` function, and the canvas is cleared and the player is drawn in the `draw` function. The game loop is started using `setInterval` with a 30ms delay.
If the player reaches the end of the canvas (right side), a "Game Over!" alert is displayed, and the player's position is reset using the `reset` function.