Here is an example of a simple game implemented in a single HTML file, containing JavaScript enclosed in script tags:
This code creates a simple game where the player can control a blue square using the arrow keys on a canvas element. The player can move the square around the canvas by pressing the arrow keys. The player can play the game by opening this HTML file in a browser on a smartphone and using touch controls to move the player square.