Hi All,
I will try to ask different question,
Lets say I want to write Multi Player game Cross Platform (Windows,Linux,MAC,Android,IPHONE),
I want to use text chat and voice chat cross platform , so users inside the game can talk each other,
Any idea if its possible in GLBasic?
Thank You
Gadi
I'm not sure but this it's C and have a lot of platforms and free(I don't read completly perhaps after have to pay something)...
http://www.linphone.org/eng/documentation/dev/liblinphone-free-sip-voip-sdk.html
Text chat is absolutely no problem with GLB, but native GLB does not have voice chat. Since you can extend GLB with C++ you may find a way to add this, but it would mean work.
That would be an interesting thing to add...
Thank You,
Is there simple example for cross platform text chat?
I can't use SIP bcz it needed UDP ports, I will prefer xmpp voice or other voice chat protocol based on tcp.
Thank You
Gadi
In GLB you have NET_ and SOCK_ commands for networking, both send strings. It just makes no difference if you send game data (like positions of the player or enemies) or your text chat. When you learn how to program a network game you will automatically learn how to text chat.
Net_ commands are easier, but i prefer SOCK_ commands since they are more powerful and even can get used to communicate with programs from other programming language (they offer normal Berkeley standard sockets).
Networking tutorials can be found in the forum.
Thank You