Coder Social home page Coder Social logo

ponceto / doom Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 2.22 MB

A quick and dirty port of the original DOOM source code with SDL2 and WASM [this repository is a mirror]

License: GNU General Public License v2.0

C 8.26% Makefile 0.18% C++ 91.29% Shell 0.27%

doom's Introduction

DOOM

This is a quick and dirty port of the original DOOM source code with SDL2, targeting Linux and WASM with Emscripten.

COMPILE AND RUN FOR LINUX

Install the dependencies

In order to build the Linux port, you must install the build toolchain and the SDL2 library.

Under Debian and derivatives (Ubuntu, Mint, ...):

apt-get install build-essential libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev

Build and run the project

cd src
make -f Makefile.linux
./doom.bin

You can also run the provided build script:

./build.sh linux

COMPILE AND RUN FOR WASM

Install the dependencies

In order to build the WASM port, You must install the Emscripten toolchain.

Build and run the project

cd src
make -f Makefile.wasm
emrun ./doom.html

You can also run the provided build script:

./build.sh wasm

COMMAND-LINE OPTIONS

Verbose level

  • -quiet set the verbose level to 0 (silent mode)
  • -error set the verbose level to 1
  • -alert set the verbose level to 2
  • -print set the verbose level to 3 (default)
  • -debug set the verbose level to 4
  • -trace set the verbose level to 5

Scale factor

  • -1 set scale factor to 1.0, resolution of 320x200
  • -2 set scale factor to 1.5, resolution of 480x300
  • -3 set scale factor to 2.0, resolution of 640x400
  • -4 set scale factor to 2.5, resolution of 800x500
  • -5 set scale factor to 3.0, resolution of 960x600 (default)
  • -6 set scale factor to 3.5, resolution of 1120x700
  • -7 set scale factor to 4.0, resolution of 1280x800
  • -8 set scale factor to 4.5, resolution of 1440x900
  • -9 set scale factor to 5.0, resolution of 1600x1000

Scale mode

  • -nearest set scale mode to nearest pixel
  • -linear set scale mode to linear filtering
  • -best set scale mode to anisotropic filtering (default)

LICENSE

As published by John John Carmack on 1997-12-23, the source code is released under the terms of the GNU General Public License 2.0.

DOOM - Copyright (c) 1993-1996 - id Software, Inc

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>

doom's People

Contributors

ponceto avatar id-mikerubits avatar

Stargazers

Yanis Benekaa avatar Baz avatar Samy Hamidou avatar Rémi Verchère avatar Adrien Beaudouin avatar  avatar  avatar Hugo Venturini avatar  avatar William Desportes avatar

Watchers

 avatar

Forkers

boyquotes

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.