Sure! Here's an example of a simple game implemented as a single HTML file using JavaScript:
This code sets up a canvas element and a player controlled by arrow key inputs. The player can move around the canvas, represented by a blue square. The game loop continuously updates and redraws the player's position on the canvas. You can run this code in any browser, including on smartphones, by saving it as an HTML file and opening it.