KryoNet: very fast and easy to use network library

I’ve been experimenting a bit with this library and it’s a relief: I don’t have to maintain my own (crappy) one within ZenithMUD.

Easy to use, documented and very efficient, according to benchmarks I’ve found around. One can use the start() method that runs the library in a Thread and takes care of getting data from the connected clients and running user-defined actions on them, or just call the update() function in your own game loop (if you are more of a control freak :))

A good starting point, besides the README, is this Chat client-server example the author has provided.

Good job!

And a new MUD is growing up!

Finally, after years of thinking and non-doing, I decided to start developing what has always been a little dream of mine: a multi-user game with fairly complex mechanics to put online and manage. In the spare time, even before enrolling in my Bachelor, I looked into 3D and 2D engines in various languages, MMORPGs open source in development and so on, when I finally realized that to test my skills and to really do something toward this direction, I’d have had to start simple!

But paraphrasing (in a totally different context, but who cares!) Einstein, things should be put in the simplest way possible, but not simpler. A puzzle game wouldn’t have done the job. I needed a kind of MMORPG, but easier. What about 2D? I don’t really like 2D fantasy game: you neither have beautiful descriptions nor beautiful graphics!

Descriptions: that’s the key. Text-based games. MUD (Multi-User Dungeons) have been around for decades, but are still played by many people. Even in Italy there are still communities alive and well. So, that’s the answer: I had to develop a MUD.

And I started, using Java…and unbelievably, I found it quite easy to setup a network infrastructure, and a system capable of handle multiple parallel commands. Test with a few users have been done and seems OK. The movement and speaking, login and logout, the persistence of the world, are all handled correctly. The first steps are done, and as soon as I have the time, the rest will be set up: more commands, a name for the project, a site, a forum, an alpha test period for the fun of the players.

I’m so excited! :°D