Sure, here's a playable sample game in the form of a single HTML file using JavaScript:
This game utilizes a simple canvas element to create a game area. The player, represented by a rectangle, can be moved around using the arrow keys on the keyboard. The game loop continuously updates and redraws the game, providing a smooth gaming experience. Feel free to modify and expand the game as per your requirements.