Pretty nicely-made game given the time constraints. The slowdown when turning on the flashlight is pretty understandable (nowhere near enough time for optimization), but, if you’re interested, I remember reading this thing about a relatively efficient way of implementing that sort of algorithm a few years ago, in case it is of any interest https://ncase.me/sight-and-light/
Anywho, well done!