Hi,
I'm wondering if there is any way to stop the mouse cursor from leaving the game screen?
I want it to stick to the gamescreen unless you press escape.
The technology for this is not yet available in the browsers.
In a few updates the MouseLock API will be available and should allow you to just exactly do that.
For now, I don't think there's a way to do it.
o.o i think this can't happen , just make full screen mode
Develop games in your browser. Powerful, performant & highly capable.
I don't like the idea to force the player to press a specified button just to get the mouse out of the game. Kids or amateur user will have big trouble, as many people still play the game but don't care about the button control.
This is not a game launcher, just a web browser after all.
Thank you for your replies. I'll just go with an other solution then. :)
hylists: What you say is completely true. Though I wanted this mainly for a personal project where I would be the only player ;)