Sure! Below is an example of an HTML game that meets your requirements:
This HTML file includes JavaScript code for an Angry Game. When the page loads, it starts a timer. If the user doesn't perform an action within 0.1 seconds, it prompts them to enter their username. If no username is entered, the game will display a "You didn't listen to me" message after 5 seconds. After 3 seconds, the game will shake and display a message saying "You didn't listen to me" again, this time directed at the user's username. There is also a "Reset" button that clears the timer, username, and messages.
To play the game, save the code into a single HTML file and open it in a web browser (preferably on a smartphone for the best experience). The game will start automatically, and you can interact with it by entering your username and clicking the "Reset" button if desired.