This is a quick and dirty port of the original DOOM source code with SDL2, targeting Linux and WASM with Emscripten.
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
cd src
make -f Makefile.linux
./doom.bin
You can also run the provided build script:
./build.sh linux
In order to build the WASM port, You must install the Emscripten toolchain.
cd src
make -f Makefile.wasm
emrun ./doom.html
You can also run the provided build script:
./build.sh wasm
-quiet
set the verbose level to0
(silent mode)-error
set the verbose level to1
-alert
set the verbose level to2
-print
set the verbose level to3
(default)-debug
set the verbose level to4
-trace
set the verbose level to5
-1
set scale factor to1.0
, resolution of320x200
-2
set scale factor to1.5
, resolution of480x300
-3
set scale factor to2.0
, resolution of640x400
-4
set scale factor to2.5
, resolution of800x500
-5
set scale factor to3.0
, resolution of960x600
(default)-6
set scale factor to3.5
, resolution of1120x700
-7
set scale factor to4.0
, resolution of1280x800
-8
set scale factor to4.5
, resolution of1440x900
-9
set scale factor to5.0
, resolution of1600x1000
-nearest
set scale mode tonearest pixel
-linear
set scale mode tolinear filtering
-best
set scale mode toanisotropic filtering
(default)
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/>