In this video I show an incredibly simple Top Down shooter server and client program. I make use of multiple packets, HashMaps, and network efficiency techniques. Source will be available in the description.
Next time, I will be implementing shooting bullets, and I hope to record it as a video commentary, so you can follow along with my thought process as I actually write the code.
I actually tried to record this as a whole video commentary where I actually built the server and client program from scratch (came out to a 4GB 33 minute file - HAH!), as I thought that might be a bit more helpful, but the audio corrupted in the middle of the recording, and became totally useless. Instead, I will write a short document that will explain the code to you. Please read the documentation if you want a full explanation. I will try to keep it as short as I can - even I know how much it sucks to read long docs.
SOURCE;
Server: https://drive.google.com/open?id=0B0O...
Client: https://drive.google.com/open?id=0B0O...
The source code also requires the following dependencies:
LWJGL: http://lwjgl.org/
KryoNet: http://code.google.com/p/kryonet/
DOCUMENTATION:
http://adf.ly/WXwuC - LINK BROKEN
-- new links added 2016-12-09 --
Server documentation: http://adf.ly/1gXmT2 - LINK BROKEN
Client documentation: http://adf.ly/1gXmVD - LINK BROKEN
-- new links added 2017-12-10 --
Client documentation: https://drive.google.com/open?id=12bj...
Server documentation: https://drive.google.com/open?id=1bdc...
These are HTML files - download them and open them in your browser
KITTEN:
http://i.imgur.com/foE3tId.jpg
Auf dieser Seite können Sie das Online-Video Java KryoNet :: A Simple Server/Client Game mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer xSaucecode 27 September 2013 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 23,390 Mal angesehen und es wurde von 111 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!