This is quite challenging...
At first, I thought it might be the problem of level design,
so I took a look at your walkthrough.
Then I found that my enemy seems to shoot more frequently since I was running higher fps?
Probably has something to do with the Update function.
But anyway, I like the raindrop you made and the look of detective