Local Game?

Options
So my game is primarily network and I have a main menu setup to start a server or a client (and connect to a server).

But there is a lot of code in the game side which revolved around Bolt (such as Bolt Instantiation).

Is there a recommended way of handling a local game without having to almost completely fork my gameplay code?

Comments

  • njt1982
    Options
    eg: One idea I've had is for the 2 player game to spawn a server with two local clients. Feels OTT though...
  • stanchion
    Options
    A local game will behave just like you are hosting, use BoltLauncher.StartSinglePlayer() instead of BoltLauncher.StartServer()
  • njt1982
    Options
    Damnit I was looking for that for an hour last night. I knew Bolt supported it somehow.

    Thanks @stanchion !