Here’s a little template you can play with! I know of only one bug right now (changing the spread on the flashlight to a value greater than or equal to 92 or less than or equal to 81 sometimes creates an issue with the dark area’s mesh creation (I have no clue what the issue is caused by, or I’d fix it)). Feel free to use this template, improve it, make it your own, and most importantly, give me feedback :). I plan to update this over time, so, if you like it, stay tuned!
https://gist.github.com/monkeyman32123/d3541d72a11f7aab7d62
EDIT: I guess I should explain the controls:
There is a dual (on-screen) joystick control: left (left half of the screen) stick is for movement and [when you aren’t using the right joystick] the angle. The right (right half of the screen) stick controls the angle (this angle overrides the angle from the left joystick). The open squares at the top and bottom/left and right of the walls of the room act as doors to the next room. The overlay has the controls for turning on flashlight mode, as well as for smoothing the edges of the “light beam” when the flashlight is on.