The game client runs on a Kubuntu Maverick 10.10 machine with terminal services (Xvnc/XinetD/kdm sessions) set up. The script which generates a config file and autostart CS2D is a perl script made by me.
The locking and unlocking of keyboard/mouse input is done by a lua script on the cs2d server which executes a perl script with os.execute which sends UDP packets to the perl script on the client which runs $mw->grabGlobal and $mw->grabRelease.
This prevents playes from messing with the options during kill (spectate).
Also remapped ESC (code: 9) to "nothing", which prevents opening the menu ingame.
Degraded everything (tiles, players, graphics and such) in the game to a 16 color palette to enhance FPS and image compression.
This allows the CS2D to be run on any device, even on mobile phone. Just fire up ANY VNC-client and connect to "www.sebn.us.to" port 5900, configure your keybindings and then press Launch.
Flashbang and nightvision is disabled on the server (unbuyable) because it changes the game image so heavly so the FPS drops to 1 under several seconds.
Here is a web client:
http://www.sebn.us.to/cs2d/
What do you think?
Any ideas of improving it?
is it "hackable"? (Eg, do you manage to access cs2d's menus, do you manage to crash cs2d so you can access the server desktop, or access things that should not be accessible?)