Giter Site home page Giter Site logo

doublechok / bananadarts-adapter-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lightstreamer/bananadarts-adapter-java

0.0 2.0 0.0 368 KB

Multiplayer, Leap Motion controlled, Dart game running in the browser

License: Apache License 2.0

Java 100.00%

bananadarts-adapter-java's Introduction

Lightstreamer - Multiplayer Darts - Java Adapter

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 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.

Install

If you want to install a version of this demo in your local Lightstreamer Server, follow these steps

  • Download Lightstreamer Server Vivace (make sure you use Vivace edition, otherwise you will see a limit on the event rate; Lightstreamer Server comes with a free non-expiring demo license for 20 connected users) 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 unzipped BananaDarts folder into the adapters folder of your Lightstreamer Server installation.
  • Download croftsoft library and compile a croftsoft-math.jar version. Please make sure to include: applet, io, inlp, lang and math packages.
  • Copy the just compiled croftsoft-math.jar file in the BananaDarts/lib folder.
  • Launch Lightstreamer Server.
  • Launch a client like the Multiplayer Darts - HTML (LeapJS, Three.js) Client.

Build

To build your own version of LS_darts_adapters.jar, instead of using the one provided in the deploy.zip file from the Install section above, follow these steps:

  • Clone this project
  • Get the ls-adapter-interface.jar file from the Lightstreamer distribution and copy it into the lib folder.
  • Get the log4j-1.2.17.jar file from Apache log4j and copy it into the lib folder.
  • Download croftsoft library and compile a croftsoft-math.jar version. Please make sure to include: applet, io, inlp, lang and math packages.
  • Put the just compiled croftsoft-math.jar file in the lib folder.
  • Build the java source files in the src folder into a LS_darts_adapters.jar file. Here is an example for that:
 > javac -classpath ./lib/croftsoft-math.jar;./lib/ls-adapter-interface.jar;./lib/log4j-1.2.17.jar -d ./classes ./src/com/lightstreamer/adapters/Dart/*.java ./src/com/lightstreamer/adapters/Dart/engine3D/*.java ./src/com/lightstreamer/adapters/Dart/room/*.java
 > jar cvf LS_darts_adapters.jar -C tmp_classes com
  • Copy the just compiled LS_darts_adapters.jar in the adapters/Dart/lib folder of your Lightstreamer Server installation.

See Also

Clients Using This Adapter

Lightstreamer Compatibility Notes

  • Compatible with Lightstreamer SDK for Java In-Process Adapters since 6.0
  • For a version of this example compatible with Lightstreamer SDK for Java Adapters version 5.1, please refer to this tag.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.