Hi i am doing a java 2D multiplayergame where im planing to use both TCP/UDP.
The game is a sidescrolling game where you could move in 2axis and shoot at other players.
I am using TCP for user events(keyclicks etc) and UDP for server to clients updates.
I am done with TCP and no im going for the UDP. How do i implement this? . The idé is to
make a new thread and in the run method i would like to push out diffrent data to the players.
I know their ip since the TCP enstablishment.
I cant use the Multicast socket since its pushing the same data to all the clients in the group :/
And since the world will be pretty big its a waste of time to send all mapdata to each player.
Can anyone help me with this?