forked from joelgwebber/quake2-web
-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
39 lines (24 loc) · 1.14 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Google's J2CL/HTML5 port of Bytonic Software's Java port of Id Software's Quake II
Prerequisites:
* maven 3.6+
* lame installed
* vorbis-tools installed
* tested on linux
1) run `com.googlecode.gwtquake.tools.Installer` from the server module
2) copy `baseq2` from `war` dir to `server/src/main/resources/META-INF/resources/`
3) optionally, for multiplayer you need to set ws server addr at client/src/main/java/com/googlecode/gwtquake/client/CompatibilityImpl.java:62
Executable jar runner:
1) run `mvn clean package`
2) `java -jar server/target/quarkus-app/quarkus-run.jar`
To build native image, GRAALVM must be installed, see for details https://www.graalvm.org/docs/getting-started/
1) run `mvn clean package -Pnative`
2) `./server/target/quake2-runner`
Building Docker image
1) `mvn clean package -Pnative -Dquarkus.container-image.build=true`
To play the game open `http://0.0.0.0:8080/quake2/` in a browser
online demo: https://j2cl-quake.colinalworth.com/quake2/
known issues:
* minor sound issues
* poor code quality (original code has been generated from C )
* it's not possible to set server address as param
Enjoy and file the bugs :)