Here's a single HTML file that contains the implementation of the game you described. The game is drawn on a canvas element and uses JavaScript to handle player movement and scoring. The player moves horizontally or vertically based on touch input on smartphones. The goal is to land on the blue spot to earn points but landing on the red spot will result in losing points. The score is displayed on the screen. The game loop continuously updates the canvas.
Note: When running this code, please make sure to enclose it within `
` tags in a .html file for it to work correctly.