Obviously the title is rather vague, but I wish to produce a 2d based game on mobile and possibly browser where in you can attack “bases” and build up your own. Is this considered realtime multiplayer or turn based? Where should i look for some documentation on the subject? Realm of the mad God does similar things to what i wish to do as well. Any thoughts welcome!
realm of the mad god is real time, you see other players moving, clash of clans is turn based, you do a local action and you sent the result, you could use photon turnBased framework for example, or IOS gamecenter Turn Based
There is not specific documentation on these kinds of stuff. You should learn the underlying required stuff to be able to do it. If you are ok with the strategy part and the game itself then a game center / photon / gamesparks or MuchDifferent’s uServer if you want to host it yourself or even some php/asp.net web pages are enough for the server (depends on your requirements)
Essentially game code should be simulated at server as well and results stored for all involved players in DB and then if the players are online you should send messages using http/TCP/reliable UDP to them.
This is the COC way and for example they allow you to watch replays after attacks but not while they are running. Realm of the mad God is fully realtime and multiplayer. For that kind of thing you should use totally different approaches.