Sure! Here's an example of a simple game called "Ball in a Box" that meets your requirements:
This HTML file represents a game where you have a ball inside a box. Every 10 seconds, something strange happens, and one of the four random commands is executed. These commands modify either the background of the box, add more balls, change the ball to a rainbow color, or trigger a party mode. After another 10 seconds, the game resets.
Please note that you need to replace the "emozi_rabbit.png" and "emozi_apple.png" in the code with the actual paths to the images you want to use for the "PARTY" and "why is it raining" commands, respectively.
Feel free to modify and enhance the code according to your needs and preferences. Have fun playing the game!