Sure! Here's an example of a single HTML file that contains JavaScript code to create a game with a spinning earth and display facts about each country:
To implement this, you will need to replace the `emozi_bear.png` image with an actual image of the Earth and add flag images for each country in the `countryFacts` object. Additionally, make sure to include those flag images as `emozi_chicken.png` in the same directory as the HTML file.
When the page is loaded, it starts the game. Clicking on the spinning Earth triggers the display of a random fact about a country (picked from predefined facts), along with the country's flag image.
Note that this is just a basic example, and you can enhance it further by adding more features, styling, and interactive elements as per your requirements.