Sure, here's a simple text-based game inspired by Resident Evil implemented as a single HTML file using JavaScript:
Note: This is a very basic example of a text-based game and excludes any pictograms or complex gameplay mechanics like combat or puzzles. It simply showcases a framework for creating a game with different states and choices. Feel free to expand upon it and add more functionalities as needed.