Java KryoNet :: A Simple Server/Client Game

preview_player
Показать описание
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;

The source code also requires the following dependencies:

DOCUMENTATION:
-- new links added 2016-12-09 --
-- new links added 2017-12-10 --
These are HTML files - download them and open them in your browser

KITTEN:
Рекомендации по теме
Комментарии
Автор

How to i import kryonet to android studio?

torch
Автор

Thanks for the video, it really helps me to understand the concepts of the server and client parts of the game *-* <3 :)

victormauriciofranchis
Автор

The API seems very clean. Do you compress/decompress packets at all? Thanks for the kitten, too. :P

MinecraftianDrak
Автор

Aw man, so cool! Thanks for the video and info! 

frnakiehoo
Автор

The program doesn´t work, i just can open one window of the game, and the other part (client windowd) dissapear.
Why this happend?

JainelGuzmanMusicCollector
Автор

Why would you separate your position packets into the two axis? It makes far more sense to combine them into one so you have less packets in the air at one time.

pancakesimone
Автор

The documentation seems to be down again. Does anyone know where I can find a copy?

Kblackfox
Автор

Hey i wanted to know if anyone else cant find the source code, it seems to been down.

peterknight
Автор

Could someone explain why he uses server.sendToAllExceptUDP() for some packets and server.sendToAllExceptTCP() for others? When are you supposed to use each method?

themodernshoe
Автор

Thanks man, great documentation. Could you add some tutorial about kryonet's RMI ? I'm having a hard time with it. Thanks again.

adnanh
Автор

Thank you ;D Really like how you used LWJGL and KryoNet :D (Although static pipeline...)

runaan
Автор

can I use the code for my game? ive been trying to find such good code for a long time now?

slimelp
Автор

Awesome thank you I've been looking for an example of this.

KarfontaAlec