Sure! Here's a sample game called "Emoji Wars" implemented as a single HTML file using JavaScript and enclosed in script tags:
This game features a yellow player emoji controlled by arrow keys, and a red enemy emoji moving horizontally. The objective is to avoid collision with the enemy emoji. If a collision occurs, an alert will be shown saying "Game Over!", and the game will be reset.