Sure! Here's an example of a simple optical illusion game implemented as a single HTML file using JavaScript:
Optical Illusion Game
In this game, an optical illusion is shown as a square div (with id "illusion"). The illusion rotates 180 degrees every time the user clicks on it. The game can be played by interacting with the illusion and observing how the rotation affects the perception of the visual pattern.
Please note that this is a very basic example, and you can enhance and customize the game as per your requirements and preferences.