Author Topic: Turn Based Game  (Read 1985 times)

Leslie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 17
    • View Profile
Turn Based Game
« on: September 11, 2014, 02:26:14 PM »
I plan on creating a turn based game with support for multiplayer. Matches are always 1vs1. I'm looking for a network solution and want to know few things about TNet.

I will need a lobby server that can make the players visible to each other. They need to be able to see a list of "online" players, chat and set up matches between them. A player should be able to start a public challenge or invite/ challenge someone. This player would start the server and the other player connects as client to him.

Is such a lobby possible and can it be run as for example console app in Linux or Windows?







ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Turn Based Game
« Reply #1 on: September 12, 2014, 04:22:32 AM »
Yes, TNet comes with a pre-compiled server you can launch anywhere. It's about 50kb, and is mono-based, so will run on Windows, OSX and Linux.

You can launch that executable as a lobby server or as a game server (and of course you can do the same thing from within Unity without having to launch anything).

Just note that a lobby server is for servers -- servers register with it, and you can retrieve a list of these servers. It's not a place to chat. If you want a chat room, you need to join an actual game server and either join a channel or use broadcasts.

Each channel can be a separate multiplayer game instance.

Leslie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 17
    • View Profile
Re: Turn Based Game
« Reply #2 on: September 12, 2014, 07:15:07 AM »
Thanks for the info.