summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 42057f3)
raw | patch | inline | side by side (parent: 42057f3)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 18 Aug 2017 13:44:15 +0000 (16:44 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 18 Aug 2017 13:44:15 +0000 (16:44 +0300) |
README | [new file with mode: 0644] | patch | blob |
build.bat | [deleted file] | patch | blob | history |
build_headless.bat | [deleted file] | patch | blob | history |
clean.bat | [deleted file] | patch | blob | history |
diff --git a/README b/README
--- /dev/null
+++ b/README
@@ -0,0 +1,25 @@
+D2DF-SDL
+---------
+
+Doom 2D Forever (https://github.com/pss88/DF) adapted for use with the FreePascal Compiler
+and ported to SDL 2.0.
+
+Building
+---------
+
+Requirements:
+* FPC >= 3.0.0;
+* FMODEx >= 4.26.xx or SDL_mixer >= 2.0;
+* libenet >= 1.3.13;
+* SDL >= 2.0.
+
+Create the "tmp" and "bin" directories beforehand if they don't exist already. Then run
+
+cd src/game
+fpc -dUSE_FMOD -O3 -Fi../lib/vampimg -Fi../lib/vampimg/JpegLib -Fi../lib/vampimg/ZLib -Fu../lib/vampimg -Fu../lib/vampimg/JpegLib -Fu../lib/vampimg/ZLib -FE../../bin -FU../../tmp Doom2DF.dpr
+
+If you want SDL_mixer instead of FMOD, replace -dUSE_FMOD with -dUSE_MIXER.
+To build a headless (no video/audio, for dedicated servers) executable, add -dHEADLESS.
+Add -g -dDEBUG to enable debugging features.
+
+Windows binaries will require the appropriate DLLs (SDL2.dll, SDL2_mixer.dll or FMODEx.dll, ENet.dll).
diff --git a/build.bat b/build.bat
--- a/build.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd "./src/game"
-fpc -dUSE_FMOD -MDELPHI -O2 -Fi../lib/vampimg -Fi../lib/vampimg/JpegLib -Fi../lib/vampimg/ZLib -Fu../lib/vampimg -Fu../lib/vampimg/JpegLib -Fu../lib/vampimg/ZLib -FE../../bin -FU../../tmp Doom2DF.dpr
-cd "../.."
diff --git a/build_headless.bat b/build_headless.bat
--- a/build_headless.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd "./src/game"
-fpc -dUSE_FMOD -dHEADLESS -MDELPHI -O2 -Fi../lib/vampimg -Fi../lib/vampimg/JpegLib -Fi../lib/vampimg/ZLib -Fu../lib/vampimg -Fu../lib/vampimg/JpegLib -Fu../lib/vampimg/ZLib -FE../../bin -FU../../tmp -oDoom2DF_H.exe Doom2DF.dpr
-cd "../.."
diff --git a/clean.bat b/clean.bat
--- a/clean.bat
+++ /dev/null
@@ -1,13 +0,0 @@
-@echo off
-del /S "tmp\*.res"
-del /S *.~*
-del /S *.dcu
-del /S *.ddp
-del /S *.o
-del /S *.ppu
-del /S *.a
-del /S *.or
-del /S *.rsj
-del /S *.lps
-del "src\game\CustomRes.obj"
-del "src\game\*.exe"