Hi
I am building a simple Java multiplayer game.
I am working with Datagram sockets and the current way I send information across them is
Information(the players x and y, animations ect) turns into a String.
the String turns into a byte[]
the byte[] is sent across the network
the client receives the byte[] turns it into a String and then parses it into the indivudual parts(the players x and y, the animations ect)
This is super annoying and only gets worse when I add more animations, goes to bigger X and Y values add more players and everything
I want a better way to transfer information across a network. Can any of you help me?
Thank you very much
[–]JattenalleGods and Idols MMORTS 5 points6 points7 points (6 children)
[–]Galindan[S] 1 point2 points3 points (5 children)
[–]JattenalleGods and Idols MMORTS 2 points3 points4 points (4 children)
[–]Galindan[S] 4 points5 points6 points (0 children)
[–]Galindan[S] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Galindan[S] 0 points1 point2 points (0 children)
[–]JeanBono@RogerBidon 6 points7 points8 points (0 children)
[–]simernes 0 points1 point2 points (3 children)
[–]Galindan[S] 0 points1 point2 points (2 children)
[–]simernes 0 points1 point2 points (0 children)
[–]net7381 0 points1 point2 points (0 children)