Hey man, thanks for taking the time and checking out my little engine! I really appreciate it. Yeah, texture-mapping floors and ceilings was indeed a challenge for me too. It may not be perfect, but I’m pretty happy with what I’ve been able to accomplish so far. That aside, would you mind elaborating on the sawtooth artefacts you had with your engine, I may or may not be suffering from the same with mine.
As for the mouse look, yeah, I did notice some of the browsers behaving differently with the movementX and movementY–especially on Safari and Firefox, the values for movementX & Y are literally all over the place and can be a pain to use the mouse to turn around etc. I have never cared for it that much since I thought it was actually a behavior of the pointer lock and mouse listener apis and there was not much I could do about it. Now that you mention it, your approach seems sensible to me, combining it with clamping the values in a window could in fact be a decent workaround for the issue. I will try that and let you know. Thanks!