Sure! Here's an example of a simple Plants vs. Zombies game implemented as a single HTML file using JavaScript. Since text-based representation doesn't work well with pictograms, I'll be using basic shapes like squares and circles to represent plants and zombies.
Plants vs. Zombies
In this implementation, plants are represented by green squares, and zombies are represented by red squares. The player can click on the green squares to create zombies, and the zombies move down the game board every second. Feel free to enhance and customize the game further according to your preferences!