As an AI text-based model, I can provide you with an example of how you can create a simple text-based game using JavaScript within a single HTML file. Since I cannot provide actual pictograms or smartphone operation, the example will be a simplified version of the Resident Evil 2 game where users navigate through different rooms to find an escape route. Here's the template:
Resident Evil 2 - Text-based Game
To use this code, you can copy and paste it into a new HTML file, save it with a .html extension, and open it in a web browser. It will display the game's description and provide clickable buttons for available actions based on the current room. Simply click on the buttons to progress through the game.
Note: This is a very basic and simplified example of the Resident Evil 2 game. The actual game is much more complex and has various elements such as graphics, puzzles, and combat mechanics. This example is meant to be a starting point and can be expanded upon to create a more intricate game if desired.