Sure! Here's a simple text-based game implemented as a single HTML file using JavaScript. You can play it by running the code snippet below. In this game, the player is represented by '@' symbol and is being chased by the man represented by '#' symbol. The player must use the arrow keys to move away from the man. If the player gets touched by the man, the game ends.
To play the game, just run this HTML code in any modern web browser (e.g., Chrome, Firefox) or save it as an HTML file and open it with a browser. You can use the arrow keys on your keyboard to control the player and avoid getting caught by the man.