Giter Club home page Giter Club logo

quantum-game's Introduction

Compiling
---------
Get Maven 2.0 and make sure the bin directory of Maven is accessible via the command line. Set
the environment variable JAVA_HOME to your JDK directory ( e.g. c:\Program Files\Java\jdk1.6... ).
open up a command line and either execute dev-setup.bat or dev-setup.sh. This will install
the dependencies into your local maven repository as well as create an eclipse project. Open
eclipse and import the project. In order for eclipse to find the dependencies you have to set
the variable M2_REPO which is usually located in your $homedirectory/.m2/repository. You can
set the variable in eclipse via window->preferences->Java->Build Path->Classpath Variables. 

The class quantum.Quantum is the main class of the project. You can create a run configuration for it
via the apropriate eclipse means. Note that you have to specify the parameter -Djava.library.path=lib/
as your vm parameter in the run configuration. This is true for all executable classes in the package
quantum.test too. 

Packaging
---------
To create a signed webstart jar as well as a zip file version of the complete game simply
execute the pack.sh or pack.bat file from a command line within the quantum directory. the
resulting jars and zip file will be placed in the target folder. the webstart jar is signed
and named quantum.jar. For the webstart version place this jar together with the files 
bsh-2.04b.jar and vorbisspi-1.03.jar from the lib directory into your web directory. put
the following content into a file ending with .jnlp

<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://apistudios.com/hosted/marzec/quantum/" href="quantum-webstart.php">
	<information>
		<title>Quantum</title>
		<vendor>APIStudios</vendor>
		<homepage href="http://apistudios.com/hosted/marzec/quantum/"/>
		<description>Quantum - A Free Realtime Strategy Game</description>
		<description kind="short">Quantum - A Free Realtime Strategy Game</description><offline-allowed/>
	</information>
	<resources>
		<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
		<property name="sun.java2d.noddraw" value="true"/>
		<jar href="quantum.jar" main="true"/>
		<jar href="bsh-2.04b.jar" main="false"/>
		<jar href="vorbisspi-1.03.jar" main="false"/>
		<extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
	</resources>
	<security><all-permissions/></security>
	<application-desc main-class="quantum.Quantum"/>
</jnlp>

make sure to replace the codebase and href in the jnlp tag with whatever you got. Also, you server
has to send the appropriate mime-type to the browser so webstart is started on the client. 

The zip file version contains all resources, dlls and a compound jar containing all dependencies. currently
there is a bug in maven that includes the jar class files twice into the jar. you can remove those manually
after the packaging stage. i have not yet found a work around for that problem.

quantum-game's People

Stargazers

Angus H. avatar

Watchers

 avatar

quantum-game's Issues

Webstart error: Found unsigned entry in resource: jsr-231-1.x-webstart-current/jogl.jar

What steps will reproduce the problem?
1. Launch http://apistudios.com/hosted/marzec/quantum/quantum-webstart.php


Found unsigned entry in resource: 
http://download.java.net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/
jogl.jar

From what I understand about JWS, you should just host your own copy of 
jogle.jar and sign it with the same certificate as all the other JARs.

Original issue reported on code.google.com by [email protected] on 21 Mar 2012 at 4:08

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.