Sure! Below is an example of a simple game implemented as a single HTML file, using JavaScript. The game involves helping a Bratz doll collect stars by moving left or right on a smartphone screen.
To use this game, you can copy the above code into a new HTML file and open it in a web browser on a smartphone. You'll see a Bratz doll represented by a dress emoji ("👗") at the starting position. Stars ("★") will appear randomly on the screen, and your goal is to move the doll left or right using the arrow keys to collect the stars. The score will be displayed in the top right corner. Enjoy playing the game!