Sure! Here's a simple stealth game implemented as a single HTML file using JavaScript:
This game features a player represented as a colored square, and the objective is to navigate the player through a level without being detected by enemies (which are not implemented in this code snippet). The player can move using the arrow keys and toggle their visibility by pressing the spacebar. The game continuously renders the player and updates the game logic using the `drawGame()` function, which is called recursively using `requestAnimationFrame()`.