juny62017/word-rain ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple browser game called Word Rain using plain HTML, CSS, and JavaScript.
Words should fall from the top of the screen at random positions, and the player types to destroy them. The first letter should lock onto a word, then the rest of the word has to be typed before it reaches the bottom. If a word gets missed, the player loses a life, and the game ends when all lives are gone.
I want it to feel endless, so there is no final level or win screen, just increasing difficulty over time. The words should spawn faster and fall faster as the score goes up and as the player survives longer. Include a few special words that give a temporary 2x score bonus.
Please add a start screen, restart flow, score and lives display, and keyboard controls like Enter to start or restart and Esc to release the current word. It should work well in modern desktop browsers, and if you need anything, check the current browser docs online.