Sure! Here's an example of a simple game called "KingCraft" implemented as a single HTML file using JavaScript and enclosed in script tags:
In this example, the game sets up a canvas element where the game graphics are drawn. You control a player represented by a blue square using the WASD keys. The player moves 5 pixels at a time in the respective direction.
Please note that this is a very basic example to demonstrate the structure of a simple game. More features, levels, and gameplay mechanics can be added based on your requirements.