Hey guys.
So on the weekends I’m playing around with learning some networking. I’ve learned some basic networking with Java sockets and want to try to go a bit further down the road and make a simple little game. I’m wanting to essentially remake the first game I ever made in Java into a basic little multiplayer test (it was essentially a Megaman Battle Network game, specifically centered on the combat).
I’ve done my research and it seems that Netty is the most up to date and functioning API for Java for networking. That said, it’s meant for very broad usage and I can’t find any good examples of making a game client/server with it. I was wondering if anyone could direct me to some simple resources that makes some sort of Hello World for it that sustains a game loop? I’m looking to use TCP/IP for simplicity.
I looked at KyroNet, but it seems like it’s being very poorly maintained and doesn’t seem to be too well documented (I may be wrong here, this was just my impression when going through the git page). With Netty, I understand that it can be very complex, but if I have access to some examples of usage, I can probably make my own open source wrapper for it that simplifies it.
Lastly, if there’s an even better and more up to date networking API out there, feel free to link it.
What I’m looking for essentially is something:
- Fast and easy to setup (I’m limited on time for this project and can’t spend a lot of time trying to decipher and bugfix other people’s old code)
- Decent documentation and examples that work out of the box
So far Java sockets have ironically been the easiest to use because there’s a plethora of articles on it out there, but I really want to find something that’s built with simplicity in mind so I don’t have to spend a lot of time on architecture and can just focus on messing around and having fun.
EDIT: Messed around with KyroNet a bit and it seems it might be viable, but additional resources are still appreciated.