Creating Multiplayer Mobile Apps

Monkey Forums/Monkey Programming/Creating Multiplayer Mobile Apps

Arabia(Posted 2013) [#1]
Hope these questions aren't too stupid, I've got zero experience with writing anything with networking:

1. Games such as Words with Friends for example, allow players across multiple platforms to play each other (ios, android, Facebook). Am I correct in assuming the only way to do this is via your own dedicated server?

2. I've only had a quick read of the forums and found anet and mnet modules, both don't look like there is a lot of going on with them (finished development maybe?) How do these work, can you use these to start a game and wait for another player somehow? Again, I imagine you need a server somewhere in the middle to match up players who are waiting to play, or do these modules rely on your entering the IP address of someone you want to play?

3. A read a thread recently about Google Play Game Services - would I be better just hanging out hoping that this is something Mark is looking at implementing in the near future?

4. I realize android apps come from the Play Store and ios come from the iTunes Store, would GPGS allow apps running on an iPad to have access to it so that users with difference devices could still play each other.


programmer(Posted 2013) [#2]
1. Games such as Words with Friends for example, allow players across multiple platforms to play each other (ios, android, Facebook). Am I correct in assuming the only way to do this is via your own dedicated server?
Yep. Also you don't need "anet" or "mnet" modules. brl.httprequest (and push notifications) is enough to develop a game like Words with Friends.


Arabia(Posted 2013) [#3]

Yep. Also you don't need "anet" or "mnet" modules. brl.httprequest (and push notifications) is enough to develop a game like Words with Friends.



Didn't know that, thanks. I'll have a bit of a look through the documentation, though I'll probably need some good examples to sort me out - I don't relate to the documentation very well for most stuff unless there is a decent example.

And for what it's worth, WwF was just an example that came to mind, what I was looking at doing was a fairly simple game, but both players would need to see the game at the same time and play at exactly the same time.

I'll have a bit more of a look.

Thanks again.


Arabia(Posted 2013) [#4]
Sorry if this is another dumb question.

I've looked in the Monkey docs - under modules, and can find no reference to a brl module and also nothing in the Functions referring to httprequest, and neither are in the index in the online help . Any pointers as to where I would find this? I've currently got Monkey 63b installed, I probably should update this, don't think that is the issue though.


Paul - Taiphoz(Posted 2013) [#5]
In your Help.

file:///D:/Code/MonkeyPro74a/docs/html/Modules_brl.httprequest.html

You might also want to look at the stream class, and the modules that use it.

I also hope mark does something with google play services.


Why0Why(Posted 2013) [#6]
There are also third party services like pubnub, which I think has been wrapped here somewhere.

Here is the thread:

http://www.monkeycoder.co.nz/Community/posts.php?topic=2397#23744


Arabia(Posted 2013) [#7]
Cheers. I'll try and take a look at everything later today.