Networking for Turn Based Game?Monkey Programming Forums/Monkey Programming/Networking for Turn Based Game?
| How difficult, in general, is networking for a turn-based strategy game like a card game?|
My plan is to have turns stored and mediated on a server with results sent out to clients.
Thoughts on this? Is there a suggested API? Ideally I would use Python on the server end.
| In that case I really would choose Pubnub which I have already integrated for HTML5 and Android in my MNet lib. I still work on the iOS port and GLFW isn't a biggy as well.|
There are already APIs for Python, so you could easily use that as well. For turn based games you should not overcome that 1 mio message "limit" for the free version there.
| Well that was easy.|
For turn based games you should not overcome that 1 mio message "limit" for the free version there.
What are you referring to there? Is that a limit with PubNub?
PubNub looks amazing.
| No. There's no limit with Pubnub. But up to 1 mio messages per month are free. |
| LOLWUT? It's $15/month plus $1 per million messages?|
That's LOLWUT. Sold.
That's perfect. For a card game I'd be happy paying 10 times that for messages.
| No. 1 mio messages are really free. Just signup.|
| Oh no I saw that but over that it appears to be $1 for a million messages which is an extremely trivial price. It would cost 100 times that just for any sort of conventional hosting.|
My concern would be tight integration with a service that might not be around forever.
Thinking about writing a collectible card game...
| Well good thing about Pubnub is that you don't have to care about connection handling. When there is a disonnect no messages are lost. |
| WOW! they have really changed the pricing for the better!!! That pay as you go price is extremely reasonable! |
| So each time a player is using your game in Networking mode he's using your monthly quota that's right?|
And what about WiFi or Bluetooth client to client Networking? Does Mnet, PubNub or another module allow you to play multiplayer game this way yet?
| No. I haven't integrated Bluetooth yet. Pubnub neither does.|
I will add this to MNet sooner or later.
| Does that mean it is somewhat possible with Wifi?|
I think on iOS there is also the Game Center framework that offer a peer-to-peer connectivity, but I guess all of this need to be ported.
| I've just seen that pubnub changed their sandbox offer to 'dev and testing only'. And it's not allowed to use it for deployed apps.|
So it costs at least 15,-- each month.
Such a pity..
| That's still nothing. |