browser - How to use websockets in a real-time multiplayer game? -


i got inspired game called agar.io try make own browser game using websockets. wonder best way of starting this. have experience in making multiplayer games, no experience websockets.

i know socket.io, not want write in javascript. tried out library: https://github.com/mrniko/netty-socketio port of socket.io java, got delays when ran demo(50ms on local computer)

i looked libgdx , found library (https://github.com/pepedeab/libgdx-net), thinking right best way go.

anyone got tips, hints or suggestions?

libgdx should start. not many people working libgdx browser deployment (let alone networked libgdx gwt application) have found, i'll share insights you.

be mindful in browser deployment have more restrictions on functionality of application. since using (libgdx) gwt deploy application, every single 1 of external jars must gwt compatible in order them deployed (kind of setback). so, if sure want browser deployment, expect headaches , possibly obscure workarounds. see http://www.gwtproject.org/doc/latest/refjreemulation.html

for networking code examples, check which websocket library use. know there android examples reference gwt compatible websocket stuff you're potentially looking for.

if looking cleaner way of doing things, nathan sweet , people @ esoteric software have done incredible job kryonet (a networking library) highly recommended if wanted take less headache route , switch desktop/android/ios


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -