Link to home
Create AccountLog in
Avatar of allelopath
allelopath

asked on

network game on Android

I'm looking for a high-level explanation of how a networking game on Android works. For example, Words with Friends. Either you can explain it or point to something that does, how the communication works. E.g. Player1 presses submit, this is transmitted by <some protocol> to <some server/client>. etc.
Avatar of girionis
girionis
Flag of Greece image

A networking game on Android is no different than a networking game on a PC. The sequence is as follows:

Player 1 does an action (for example types a word)
Android client sends this text (word) to the server.
(If it's necessary the server saves the word in the database.)
The server broadcast the word to all other players who are registered to receive the messages.

The protocol could be anything, TCP/IP, UDP, HTTP, SOAP etc. IT's up to you to decide.

For an example have a look here:

http://www.dreamincode.net/forums/topic/259777-a-simple-chat-program-with-clientserver-gui-optional/
Avatar of allelopath
allelopath

ASKER

If I want to create my own game that works in a similar way to Words with Friends, at least with respect to communication between players. then I have to have my own server? How is that done?
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account