Sure! Here's an example of a simple 2D action game implemented as a single HTML file using JavaScript and enclosed in script tags:
In this game, you control a blue cube and your goal is to eat all the 500 black cubes while avoiding the red cubes. The more black cubes you eat, the bigger and faster you become. However, if you touch a red cube and you are smaller than it, you lose the game.
To control the blue cube, you can use the arrow keys on your keyboard. Move towards the black cubes to eat them. Once you have eaten all the cubes, you win the game. If you touch a red cube and you are bigger than it, you can eat it, which doubles your size rate.
The game is enclosed in script tags and can be run directly in a web browser, preferably on a smartphone for easier operation. The game uses pictograms represented by different colored cubes.