Sure! Here's an example of a simple game implemented in a single HTML file using JavaScript and enclosed in script tags:
This game displays a random pictogram in the center of the canvas. The player earns a point by clicking on the pictogram accurately. The score is displayed on the console. The game cycles through different pictograms at regular intervals, and players can play the game by clicking on the correct ones.