The Multiplayer Darts implements a multiplayer, Leap Motion controlled, dart game running in the browser and using Lightstreamer for its real-time communication needs.
This project shows the Data Adapter and Metadata Adapters for the Multiplayer Darts and how they can be plugged into Lightstreamer Server.
As an example of a client using this adapter, you may refer to the Multiplayer Darts - HTML (LeapJS, Three.js) Client and view the corresponding Live Demo.
If you want to install a version of this demo in your local Lightstreamer Server, follow these steps
- Download Lightstreamer Server (Lightstreamer Server comes with a free non-expiring demo license for 20 connected users; this should be preferred to using COMMUNITY edition, otherwise you would see a limit on the event rate) from Lightstreamer Download page, and install it, as explained in the
GETTING_STARTED.TXT
file in the installation home directory. - Get the
deploy.zip
file of the latest release, unzip it and copy the just unzippedBananaDarts
folder into theadapters
folder of your Lightstreamer Server installation. - [Optional] Customize logging settings in log4j configuration file
BananaDarts/classes/log4j2.xml
. - Launch Lightstreamer Server.
- Launch a client like the Multiplayer Darts - HTML (LeapJS, Three.js) Client.
To build your own version of example-multiplayerdarts-adapter-java-x.y.z.jar
, instead of using the one provided in the deploy.zip
file from the Install section above, you have two options:
either use Maven (or other build tools) to take care of dependencies and building (recommended) or gather the necessary jars yourself and build it manually.
For the sake of simplicity, only the Maven case is detailed here.
You can easily build and run this application using Maven through the pom.xml file located in the root folder of this project. As an alternative, you can use an alternative build tool (e.g. Gradle, Ivy, etc.) by converting the provided pom.xml file.
Assuming Maven is installed and available in your path you can build the demo by running
mvn install dependency:copy-dependencies
- Compatible with Lightstreamer SDK for Java In-Process Adapters since version 8.0.
- For a version of this example compatible with Lightstreamer SDK for Java Adapters version 7.4.x, please refer to this tag.
- For a version of this example compatible with Lightstreamer SDK for Java Adapters versions 7.0 to 7.3, please refer to this tag.
- For a version of this example compatible with Lightstreamer SDK for Java Adapters version 6.0, please refer to this tag.
- For a version of this example compatible with Lightstreamer SDK for Java Adapters version 5.1, please refer to this tag.