A small demonstration of javascript coding with ThreeJS and CannonJS
LEFT-CLICK = Shoot, RIGHT-CLICK and 0,1,2,3 = Select Ammo Type
Click to play
W,A,S,D = Move, SPACE = Jump, MOUSE = Look

Original example by
mrdoob @ codepen