Sure, here's a simple example of a zombie first person shooter game implemented in a single HTML file using JavaScript:
This code sets up a canvas element to render the game graphics and defines a player and zombie objects. The player is moved based on keyboard input, and zombies are spawned randomly. It also handles collisions between the player and zombies, displaying a game over message when a collision occurs. The game loop continuously redraws the canvas to update the game state.