multi-user game concept (LAN and internet)

BlitzMax Forums/BlitzMax Beginners Area/multi-user game concept (LAN and internet)

Happy Sammy(Posted 2010) [#1]
Hi all,

If we want to create a simple multi-user game (eg. Tic-Tac-Toe or card game) with blitzmax for 4 users (maximum)...

1. what basic modules are needed to install?
2. when game players receive the exe file, do they just double-click the exe file and start playing?
or, they need to know ip of each participant(player) for LAN or Internet?
3. Is any game server needed for a simple game? What is the difference with or without a game server?

Thanks in advance


Dreamora(Posted 2010) [#2]
1. Generally none. for such a game you could actually use brl.GNet without a problem
If you need something more sophisticated Vertex.BNetEx or Leadwerks.Network might be the way to go.

2. They double click the exe. But post that point you must offer them ways to define where they want to connect to. They only need to know 1 ip and thats the ip of the hosting player. if its on the internet that must be offered through a master server (can be a php that basically lists you all active game ips) or by the user. in LANs you can use broadcast.
For internet access, keep in mind that the users must setup portforwards for the port you use on UDP

3. Yes. but it must not be a distinct application, you can have it as part of the application and let the player host from within the game.


Happy Sammy(Posted 2010) [#3]
Thanks, Dreamora.