Sure, I can help you create a game based on your idea. Here's an example of an implementation using HTML, CSS, and JavaScript, all enclosed in a single HTML file:
Tap on the doors to shut them when the robots are nearby!
To play the game, simply copy and paste the above code into an HTML file, save it, and open it in a web browser (preferably on a smartphone for a better experience). The game will start automatically, and you can tap on the doors to shut them when the robots are nearby. Each night will get harder, with the robots coming faster. The score will increase for each successful shut door.