Sure! Here's a simple game where you can pet a virtual dog using pictograms. It's implemented as a single HTML file, enclosed within script tags, and written in JavaScript.
Please note that in order to run the code, you need to save it as an HTML file and open it in a web browser.
In this game, you'll see a pictogram of a dog. By clicking the "Pet the Dog" button, you'll increase the pet count and the dog pictogram will change accordingly. As you continue to pet the dog, it will transform into different pictograms, representing a happy and well-petted dog.
Enjoy playing the game!