Sure, here is a simple retro game implementation using JavaScript, HTML, and CSS. It's a classic game where the player controls a spaceship and tries to avoid obstacles while collecting points.
Score: 0
You can save the above code in an HTML file (e.g., `retro_game.html`) and open it in any web browser to play the game. In this game, the player controls the spaceship by touching and moving horizontally on a touchscreen device. The objective is to avoid the randomly generated blue obstacles and collect points as the game progresses. The score is displayed at the top, and the game ends when the player collides with an obstacle. After the game ends, an alert is shown with the final score, and the game restarts automatically.