I’m wanting to make my platformer multiplayer, and while I know how to do some of the more advanced things, it’s the “simple things” such as a packet system that I don’t really understand.
I understand how to make an authoritive server, how it works, etc, but I’m not so great at how to transfer the data back and forth between the server/client information on what it’s for.
I know that I can do things like, send everything in a string data, using “[packetname]” as a tag, then decode it on the server-side, but there has got to be a better way to do things, so I guess I’ll go ahead and ask.
I’ve been told to use DatagramServer with DatagramPackets, but I’ve read that they are extremely unreliable, is this true?
Would I be better off using IO, NIO, Netty, Mina, Etc?
I’m still learning and this is going to be my first multiplayer project (That I’ve wrriten the core of the server for) and I’m just not too sure how where to begin. I’ve worked on plenty of projects where the server was already completed and I was just adding things like server-sided collision/logic checking, but this is my first “From scratch” project.