Skip to Main Content
Killer Game Programming in Java
book

Killer Game Programming in Java

by Andrew Davison
May 2005
Intermediate to advanced content levelIntermediate to advanced
998 pages
26h
English
O'Reilly Media, Inc.
Content preview from Killer Game Programming in Java

Another Way to Install Checkers3D

The Checkers3D example works on the principle of including the Java 3D libraries as part of the application. An alternative approach is available at https://j3d-webstart.dev.java.net: making the Java 3D binaries accessible through their own JNLP deployment file.

This means that the deployment file for an application—such as Checkers3D—can specify that Java 3D be downloaded at runtime if it's not available on the client's machine. The size of the Checkers3D-specific part of installation will be substantially reduced since the Java 3D elements are separated.

A sample JNLP file that uses this approach can be found at https://j3d-webstart.dev.java.net/example.html. The relevant line employs a resource extension:

    <resources>
      <j2se version="1.4+"/>
      <jar href="MyExample.jar" main="true"/>
   
    <extension href="https://j3d-webstart.dev.java.net/release/java3d-1.3-latest.jnlp"/>
    </resources>

The Java 3D binaries will be retrieved from https://j3d-webstart.dev.java.net/release/ using java3d-1.3 -latest.jnlp.

There are two simple JWS-enabled Java 3D applications in https://j3d-webstart.dev.java.net/prototype/test/. There's a thread discussing this work at the Java Desktop forum on Java 3D, http://www.javadesktop.org/forums/thread.jspa?threadID=4563.

The idea of using JNLP resource extensions to include the Java 3D libraries as a separate deployment is also utilized in the FlyingGuns game/simulation (http://www.flyingguns.com). The direct link to its top-level deployment ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Game Development with LibGDX: From Beginner to Professional

Java Game Development with LibGDX: From Beginner to Professional

Lee Stemkoski

Publisher Resources

ISBN: 0596007302Supplemental ContentErrata Page