K
K
Konstantin Artyushkevich2016-10-07 20:07:38
Java
Konstantin Artyushkevich, 2016-10-07 20:07:38

Server for online game on Android?

Hello. Until that time, he was engaged in the development of games for android without the use of network technologies. But now I wanted to make one game. The essence is about the same as online poker, but instead of poker, an economic game. The architecture is the same: there are rooms for n players (from 2 to 8), the player can create this room and wait for other players to join. When there are enough people, the game will start. Also, players should see in the list all created and unfilled rooms.
At the moment, I managed to create an application (client) for android and a server for Java. It all works on sockets. When starting the server, you need to specify the number of players in the room. Those. as you might already understand, the server only supports 1 room and you won't be able to create a list of these rooms.
As I understand it, the task that I set for myself cannot be realized using these sockets and I will have to make the server according to a completely different scheme using other technologies. I saw a lot of posts about Rest, Spring .. but I am 0 in these technologies.
So, where should I start, what should I use and are there any examples of how all this can be done?
Thanks in advance :).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri, 2016-10-08
@profyan

"rooms" is a virtual entity, just give your sockets on the server the number of the room they are attached to. in fact, the sockets are the same, only the number (or id) of the room is added.

D
Denis Zagaevsky, 2016-10-07
@zagayevskiy

Для этого достаточно Google Play Games Services. Там есть мультиплеер, курите их маны. https://developers.google.com/games/services/commo...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question