Sure! Here's a simple game implemented as a single HTML file that meets your requirements. Please note that this code provides a basic framework, and you can enhance it further according to your specific game requirements.
This game sets up a game area with a player represented as a white circle (`player`) and multiple skeleton enemies represented as red circles (`skeleton`). The player can be moved using the arrow keys or 'W', 'A', 'S', 'D' keys on a computer or by touch gestures on a smartphone.
The goal of the game is to avoid collisions with the skeletons. If the player collides with any skeleton, the game resets. The game continuously generates new skeleton enemies.
Feel free to modify and enhance the game further with additional features, levels, scoring, or graphics as desired.