Sure! Here's an example of a simple dot-eat game implemented as a single HTML file using JavaScript:
This game uses touch or mouse input to eat the dot represented as a red square on the canvas. Each time the dot is eaten, the player's score increases, and the dot's eaten position is regenerated randomly. The game runs in a loop, continuously updating and redrawing the game state.