weimingtom / quantum-game Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/quantum-game
License: GNU Lesser General Public License v2.1
Automatically exported from code.google.com/p/quantum-game
License: GNU Lesser General Public License v2.1
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.