Skip to content

klaussilveira/ioquake3.js

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 3 commits ahead, 821 commits behind ioquake:main.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
ui
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ioq3.js

ioq3.js is a simple port of ioquake3 to the web using Emscripten. It was heavily inspired by inolen's quakejs, but aims to be simpler and up-to-date with the latest Emscripten features.

Demo

You can play the demo version here.

Building

make PLATFORM=js EMSCRIPTEN=/path/to/emscripten

Binaries will be placed in build/release-js-js.

Adding data

Data is preloaded using Emscripten's virtual filesystem. So, if you want to play, you have the provide the official (or demo) PK3's. Here's how it would work for retail Q3:

python /path/to/emscripten/tools/file_packager.py emscripten_data.data --preload baseq3 > emscripten_data.js

And add this to the build/release-js-js/ioquake3.html file:

<script async type="text/javascript" src="emscripten_data.js"></script>

Running

  • Run python -m SimpleHTTPServer 8888 in build/release-js-js
  • Load localhost:8888/ioquake3.html in your browser

Todo

  • Networking
  • Drop LEGACY_GL_EMULATION

About

Emscripten port of ioquake3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.2%
  • C++ 2.5%
  • Makefile 0.5%
  • HTML 0.4%
  • GLSL 0.3%
  • Assembly 0.3%
  • Other 0.8%