GithubHelp home page GithubHelp logo

rlugojr / ioquake3.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from klaussilveira/ioquake3.js

0.0 3.0 0.0 51.49 MB

Emscripten port of ioquake3

License: GNU General Public License v2.0

Makefile 0.45% C++ 1.93% C 95.91% CMake 0.09% Assembly 0.26% Objective-C 0.12% MATLAB 0.01% Perl 0.05% GLSL 0.34% HTML 0.39% Groff 0.12% Yacc 0.02% Shell 0.22% Visual Basic 0.01% NSIS 0.07%

ioquake3.js's Introduction

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

ioquake3.js's People

Contributors

amanieu avatar andreyv avatar cmf028 avatar dersaidin avatar ensiform avatar gbougard avatar hgs3 avatar icculus avatar inolen avatar ir4t4 avatar jeremiah-sypult avatar jonathangray avatar klaussilveira avatar lnussel avatar losinggeneration avatar miried avatar mycoboco avatar nuclearmonster avatar pan7 avatar razish avatar richard-allen avatar robertoestrada avatar smcv avatar smiletheory avatar thiloschulz avatar timangus avatar tjdub avatar xhairball avatar xycaleth avatar zturtleman avatar

Watchers

 avatar  avatar  avatar

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.