Sure! Here's an example of an HTML file that implements a simple pixel art maker game using JavaScript. The game allows the player to paint pixels on a canvas using different colors.
This HTML file includes a canvas element where the player can tap/click to paint pixels with random colors. The canvas listens for touch events and uses JavaScript to calculate the grid position of the touched pixel and randomly assigns a color to it.
Note: Since the game is designed for smartphone operation, it utilizes touch events. However, you can adapt it for mouse events if you're using a computer instead of a smartphone.