Skip to content

ponceto/doom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-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/>

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages