support for changing window resolution

- press F1/F2 to decrease/increase screen mode
- works only if system has support for canvas
- fixed bug where distance was framerate dependant
set mouse pointer invisible
added pause function with p key
pressing any joystick button unpauses game