Sure! Here's an example of a simple game implemented as a single HTML file with JavaScript enclosed in script tags:
Toilet Head Fighter
Score: 0
This game is called "Toilet Head Fighter". In the game, you have to click on the toilet heads to defeat them and earn points. The toilets randomly move around the screen, and some of them shoot laser beams from their eyes.
The game starts automatically when the page loads and lasts for 30 seconds. The player's score is displayed at the top, and it increases by 1 point for defeating a small toilet head and 2 points for defeating a big toilet head.
After the game ends, an alert is shown with the final score. You can adjust the game duration or customize the appearance of the toilets and laser beams by modifying the JavaScript code or CSS styles.