Sure, here's an example of a simple game implemented as a single HTML file using JavaScript and enclosed in script tags. The game is called "Dress up Character Pomni" and it can be played on a smartphone. It uses pictograms to dress up the character.
Dress up Character Pomni
To use this game, you would need to create pictograms of various accessories (hat.png, glasses.png, shirt.png, pants.png, shoes.png) and place them in a folder named "pictograms" in the same directory as the HTML file.
When you open the HTML file in a web browser on your smartphone, you will see a character box and a set of accessory pictograms below it. By tapping on an accessory pictogram, the corresponding accessory will be added to the character, and if an accessory was previously selected, it will be removed.
Hope this helps in creating your game!