Sure, here's an example of an HTML file containing a simple game with a walking monkey that the player can click on using JavaScript:
Walking Monkey Game
Please note that you would need to replace the `background-image` URL with the actual path to your monkey image. Additionally, make sure to have an image file named `emozi_all/background.png` in the same directory as your HTML file.
This example uses CSS to position and style the monkey image. The JavaScript code defines three functions:
1. `getRandomPosition()` - This function returns random X and Y coordinates within the boundaries of the window, taking into account the size of the monkey image.
2. `moveMonkey()` - This function moves the monkey to a random position on the screen by setting its `left` and `top` CSS properties.
3. `clickMonkey()` - This function is triggered when the monkey is clicked, it calls `moveMonkey()` to reposition the monkey.
Finally, the game starts by calling `moveMonkey()` to initially position the monkey.