I am currently working on my biggest project - chess. I want to create lobby / room system where you can type a code and connect with a friend and play real time. The problem is that l have 0 experience with making multiplayer. Can something like this be made in Java and if yes how?
Asked
Active
Viewed 414 times
1 Answers
0
Firstly, you need to learn network programming. If you understand how network runs and wirte some little example of TCP/UDP, you'll know how to start.
Then, you need a server to control communication between these two/or more players, that always look like a look below
void activate()
{
while (true)
{
// Process Players packages in
// Process game logic
// Process packages respond
}
}
After that, it will look ok as a little game.

tyChen
- 1,404
- 8
- 27