By angeladur
via html5rocks.com
Submitted: Dec 06 2012 / 09:42
The Pointer Lock API helps properly implement first-person shooter controls in a browser game. Without relative mouse movement the player's cursor could, for example, hit the right edge of the screen and any further movements to the right would be discounted - the view would not continue to pan right, and the player would not be able to pursue the bad guys and strafe them with his machine gun. The player is going to get fragged and become frustrated. With pointer lock this suboptimal behaviour can't happen.
Tweet
SaveShareSend
Tags: css-html, open source, web design
Add your comment