You can ask the map engine if things are/would be obstructed.
You need to make minor changes for your Sphere 1.x game to work in TurboSphere. Sphere's objects aren't set up in a JavaScripty way. For instance, in Sphere 1.x:
var Red = CreateColor(255, 0, 0);
In TurboSphere:
var Red = new Color(255, 0, 0);
Or more interestingly:
var Picture = LoadSurface("pic.tga");
var Surf = CreateSurface(16, 16, Red);
TurboSphere overloads constructors:
var Picture = new Surface("pic.tga");
var Surf = new Surface(16, 16, Red);
I have tried, and it is pretty easy to write scripts to adapt the TurboSphere to run Sphere 1.x code.
But I rather prefer the more constructor-y way.
I'd recommend putting a game loop inside gam(). I wouldn't recommend recursing game. You will quickly run into errors about being too deeply recursed. Plus...it would be kind of weird.