Sure, here's an example of a simple snake game with enemies implemented using JavaScript within a single HTML file. This game is designed for smartphone operation and uses pictograms:
This HTML file includes a canvas element where the game is drawn. The snake is controlled by arrow keys or touch swipes on a smartphone. The objective is to eat the red enemies to increase the score. The game ends if the snake collides with the boundary or its own body.