Game Development Community

Networked game, but have clients as just cameras

by Andre Clark · in Torque X 2D · 09/15/2008 (12:46 pm) · 0 replies

Hey All,
So in my TX 2D project, I want to network computers together in order to have multiple displays set up in one area. I want players to be able to move from one screen to the other. The idea is that each client computer will simply act as a camera into the main game scene and thus each camera will simply show an equal fraction of the total scene space and remain static.

I've been looking around for any TorqueX networking tutorials, but haven't found any. Does anyone know of any good sources to look at?

The approach I was going to take was to set up a number of Gui views in the main server which attach to the main GuiCanvas (_playScreen). And after those are set up, each client would simply instantiate a T2DCamera and attach themselves to the server's gui views.
Does this sound feasible?

My biggest concern is whether or not the client camera would instantly update if they are linked to the server's gui view. I'm not sure if I would have to write any additional update functions for the server to broadcast to the clients.

Thanks for reading this ramble, it was actually a good way for me to get my idea out. I'm still not sure if it will work and I'm trying to flesh out some other code before I hop onto this task, but if any of this sounds like a reasonable approach, or not at all, I'd love to hear any input.

Take care