Sure, here's a simple text-based game implemented in a single HTML file that meets your requirements. It uses JavaScript within script tags to handle the game logic:
This game starts by printing a brief introduction to the console, explaining the scenario. The player can then choose to fight zombies or build a shelter by typing the corresponding commands. The progress is displayed in the console as the game progresses.
Please note that this is a simplified version of a game and does not include any graphical representation or user interface. It solely relies on console logs for output.