I'm glad you enjoyed the previous response! Here is an example of a simple game implemented as a single HTML file with JavaScript enclosed in script tags. It can be played on a smartphone and uses pictograms for visual elements.
Food Eater Game
This code sets up a simple game where the player (represented by a person pictogram) can move around using arrow keys to collect food (represented by a plant pictogram). Each time the player collects food, the score increases and the food's position is randomly reset. Have fun playing the game!