Sure, here's an example of a simple survival game implemented as a single HTML file using JavaScript:
This game uses the HTML `<canvas>` element to draw a rectangular player character that the user can control using the arrow keys. The player character can move around the screen in response to the arrow key presses.
Note: This is just a basic example to get you started with a survival game. You can expand on it by adding enemies, obstacles, power-ups, and other gameplay elements based on your specific requirements.