Sure! Here's an example of a simple interactive text-based game called "Dad's Adventure to Get Milk - Part 5" implemented as a single HTML file using JavaScript:
Dad's Adventure to Get Milk - Part 5
Dad wakes up in a mysterious cave. There are three paths ahead, which one
will he choose?
1) Path of the Dragon
2) Path of the Treasure Chest
3) Path of the Deep Pit
To play the game, you can simply copy and paste the code into a new HTML file, save it, and open it in a web browser. The game will start automatically and prompt you for input. Enter the desired option (1, 2, or 3) and see the outcome.
Note: This is just a simple example game. You can expand upon it, add more choices, incorporate images, or create a more complex game logic based on your requirements.