Sure! Here's an example of a simple 2D game called "Jumper Guys" implemented as a single HTML file using JavaScript and enclosed in `script` tags:
This is a basic implementation where you control a blue square (representing the player) using the left and right arrow keys. The player can move horizontally within the game window. You can add more features, obstacles, and scoring logic to turn it into a complete game.