Sure! Here's an example of a simple game that meets your requirements:
You can save the above code as an HTML file and open it in a web browser. You will see a canvas with a green ✅ emoji representing the player. You can control the player using the arrow keys. The red ❌ emojis will move closer to the player, and if they collide, the game will end with a "GAME OVER" screen. Clicking the canvas will start the game.
Note that this is a very basic implementation and can be further enhanced with additional features, levels, scoring, etc. But it should give you a starting point for your game.