Nadron is a java nio based server specifically designed for mutliplayer games. It supports UDP and TCP transports. It uses Netty for high speed network transmission and Jetlang for extremely fast in-vm message passing between player sessions and game rooms. The project also uses spring for its dependency injection. This way, it is highly configurable and you can swap out any part of the server with your own implementations.
The wiki provides implementation level details and answers to general questions that a developer starting to use Nadron server might have about it. This blog post contains a decent tutorial on creating a multiplayer game using this server. Support Group
For general discussion please use the Nadron server google group. Issues and bugs can be raised directly in github. Installation
<dependency>
<groupId>com.github.menacher</groupId>
<artifactId>nadron</artifactId>
<version>0.5</version>
</dependency>
The pre-built jar files of this project are located in the nadron/binaries directory. All dependant jars are located in the nadron/lib directory. You can just add them to your classpath in your favorite IDE and start coding. If you want to compile from source, then follow steps below.
Pre-requisites: Please have maven 3+ and Spring source tool suite or eclipse installed. If you are using plain vanilla eclipse, then M2Eclipse and EGit plugins though not required will be helpful. If you are using another IDE then the maven-eclipse plugin part in the pom.xml needs to be modified.
- git clone [email protected]:menacher/java-game-server.git
- cd java-game-server
- cd nadron
- mvn eclipse:eclipse - Takes time, the first time! If you want to reduce this time, then comment out include sources/jars option from the maven pom.xml eclipse plugin part.
- eclipse -> file -> import -> git -> select repository and import Nadron project.
- Nadron project in eclipse -> right click on pom.xml -> run as -> maven test - Takes time the first time!
If everything works as expected you should see some test cases executed successfully!
If you are using ant, then the lib folder within the Nadron project contains all the dependent libraries. Just right click and run ant build and it will create the Nadron jar.
Happy coding!