Pointer Lock and First Person Shooter Controls | HTML5 Game Development (original) (raw)

HTML5Rocks has an article on using the newly minted Pointer Lock (which prevents the cursor from hitting the edge of the game area in, say, an FPS). It also goes into the details of using the captured mouse movements to create FPS-style controls.

Read the article

HTML5 Game Dev Tutorials