Sure! Here's an example of a game implemented as a single HTML file using JavaScript and encased in script tags:
The above code creates a game where random emojis are generated and displayed on the screen. Every 10 seconds, weirdness occurs where the background color changes, rain starts falling, and emojis change into rainbow squares or balls. After another 10 seconds, the weirdness stops and the process repeats.
Please note that due to the limitations of the text-based platform, some features like animations and background images may not function properly. To experience the game fully, you can copy the code into an HTML file and run it in a browser on your smartphone or PC.