Sure, here's an example of a simple game where you defend against an endless wave of zombies using a rack. The rack will have limited durability, and the zombies will have increasing health with each wave. To simplify the implementation, I will use text representation instead of pictograms. Remember to save the following code in a single HTML file and run it in a web browser.
Zombie Defense Game
Click on the rack to defend against the zombies!
Rack (Durability: 10)
In this game, you will see a rack displayed on the screen, and below it, there will be a section indicating the zombies' wave and their health. You can click on the rack to defend against the zombies. Each click will reduce the rack's durability, and the zombies' health will decrease accordingly. If the health of all zombies in a wave reaches zero, a new wave will start and the rack durability will be reset. The game will continue indefinitely with increasing difficulty for each new wave.