Sure, here's a simple example of a 2D sandbox game implemented as a single HTML file using JavaScript:
This example sets up a canvas element where items will be drawn and creates a list of available items in the game, each with an associated icon represented by a pictogram. The game loop handles game logic and drawing the items on the canvas using the `fillText` method.
Please note that the provided example is a basic starting point, and you can expand upon it to add more features and functionality to your game.