Sure, here's a simplified version of a game resembling "Five Nights at Freddy's" with the requested characters: a pig, a bunny, and a chimpmunk. Please note that this is just a basic implementation that you can build upon and enhance according to your needs.
Piggy's Night Guard
In the above implementation, three animatronics (pig, bunny, and chimpmunk) are created and displayed on the game board. They will move at different speeds randomly. If the player clicks on any animatronic, it will trigger the `endGame()` function and a Game Over alert will appear.
You would need to replace the following lines with actual image URLs of pictograms for the characters:
- `emozi_all/pig.png` for the pig
- `emozi_himawari.png` for the bunny
- `emozi_rabbit.png` for the chimpmunk
Please ensure you have the corresponding image files in the same directory as the HTML file.
Keep in mind that this is just a basic starting point, and you can further develop the game mechanics, add more features, and refine the gameplay experience according to your requirements.