Hi all — I'm the developer behind The Last Shift, a small top-down horror game I released here last month. I've now put the game's full source up as a starter kit for anyone who wants to make their own.

It's one self-contained HTML file: the movement, the flashlight and battery system, the stalker that freezes when your light is on it, the task list, the sounds, all of it — commented so you can pull it apart and rebuild it into your own game. The free game is still up if you want to play what the kit makes before thinking about the code.
Kit: https://wren7762.itch.io/html5-horror-game-starter-kit
Free game: https://wren7762.itch.io/the-last-shift
Happy to answer questions about how any part of it works.

