It's not optimized but it works... Please use this link to run the project: https://experiments.turbowarp.org/pointerlock/1143721013?hqpen W/A/S/D - Movement SPACE - Jump C - Toggle crouching Q/E - Lean left/right 1/2/3 - Switch held item CLICK - Attack ARROWS - Look around (can use mouse if using Turbowarp link)