Sure! Here's an example of a simple text-based game called "Crime City" implemented as a single HTML file using JavaScript:
Crime City
To play the game, simply open the HTML file on a smartphone or any web browser and follow the prompts. The game allows you to perform actions like robbing, working, and sleeping, with randomized outcomes affecting your stats (health and money). The game will continue until your health reaches zero or you choose to quit.