Sure! Here is a sample implementation of the game you described. Save the code below in a single HTML file and open it in your web browser to start playing:
This HTML file contains the complete game implementation using JavaScript. You can open it in a web browser, preferably on a smartphone, to play the game. Use your finger to swipe and guide the dot around the screen, while avoiding the red dots. Your score will increase by 1 point every second and will be displayed at the top of the game. If any of the red dots collide with your dot, the game will end. Enjoy!