Hey, cool game. I have some feedback after my playthrough. The switch mechanic is cool and works cleanly. I was jumping repeatedly and dying by accident when I held W down a split second too long, my guess is you used getKey rather than getKeyDown for your jump controls I prefer the control of pressing jump once for a single jump and twice for a double jump but maybe that's just a personal preference.
Also I found I got to the front of the scrolling camera and then had to wait for it to move on before I could do anything so you could maybe implement a trigger zone towards the front of the camera that would speed up the scroll for a bit if it's hit to prevent that. Even so, cool game and good work.