Made this for a java class in college.
This is basically a chatting game. You move around and chat with other users.
You use WASD keys to move on a keyboard.
Also, if you have a ps4 controller you can use the arrow buttons to move.
Here's how you pass in the ip you want to connect to and stuff:
java -Dip="123.456.789.123" -Dport="25565" -jar GameClient.jar
If you don't specify any ip or port the defaults are 127.0.0.1 for the ip and 25565 for the port.
First argument is the port to listen on.
java -jar GameServer.jar 25565
For convince I made a docker container for the server at https://github.com/thatshawt/2D-Game/pkgs/container/2d-game. The server runs on port 25565, so bind that port however you want lmao.