Giter VIP home page Giter VIP logo

emduke32's Introduction

emduke32

An effort to port duke3d to your web browser by combining eduke32 with emscripten

/* By BC van Zuiden -- Leiden, March 2017 */
/* Probably very buggy USE AT OWN RISK this will brick everything you own */
/* NOBODY but YOU is liable for anything that happened in result of using this */
/* WARNING: DON'T RUN THIS PROGRAM THIS WILL DESTROY YOUR COMPUTER AND/OR HOUSE; POSSIBLY BY ALIENS */
/* Any copyrighted piece of code within this code is NOT mine */
/* Inclusion of that code is forced upon me by a scary anonymous guy with a gun*/
/* https://github.com/originalsouth/emduke32 */

About

emduke32 aims to bring duke3d to your web browser by combining eduke32 with emscripten. It does so by adding emscripten support to the eduke32 makefile system with minimal soure code modifications.

Feel free to reuse and contribute, pull requests are very welcome! This code is (and forever will be) a work in progress.

Building

To build the normal eduke32 binary with gcc run:

make

To build the normal eduke32 binary with clang run:

make CLANG=1

To build eduke32.js with emcc run:

make EMSCRIPTEN=1

To build eduke32.html with emcc run:

make EMSCRIPTEN=1 HTML=1

You can load the html file with a webserver, for instance darkhttpd. You will have to supply a copy of the original game files duke3d-folder yourself they can be pre-loaded as such:

make EMSCRIPTEN=1 HTML=1 EMSPRELOAD=<duke3d-folder>

The OBJECT files will be removed by running make clean

Acknowledgements

emduke32's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.