Permalink
Browse files

The DOOM sources as originally released on December 23, 1997

  • Loading branch information...
tbradshaw committed Jan 31, 2012
0 parents commit 4eb368a960647c8cc82d721d0183629ae10759d1
Showing with 59,219 additions and 0 deletions.
  1. +78 −0 README.TXT
  2. +109 −0 linuxdoom-1.10/CVS/Entries
  3. +1 −0 linuxdoom-1.10/CVS/Repository
  4. +1 −0 linuxdoom-1.10/CVS/Root
  5. +922 −0 linuxdoom-1.10/ChangeLog
  6. +112 −0 linuxdoom-1.10/DOOMLIC.TXT
  7. +98 −0 linuxdoom-1.10/FILES
  8. +221 −0 linuxdoom-1.10/FILES2
  9. +95 −0 linuxdoom-1.10/Makefile
  10. +283 −0 linuxdoom-1.10/README.asm
  11. +140 −0 linuxdoom-1.10/README.b
  12. +57 −0 linuxdoom-1.10/README.book
  13. +149 −0 linuxdoom-1.10/README.gl
  14. +110 −0 linuxdoom-1.10/README.sound
  15. +123 −0 linuxdoom-1.10/TODO
  16. +1,349 −0 linuxdoom-1.10/am_map.c
  17. +52 −0 linuxdoom-1.10/am_map.h
  18. +701 −0 linuxdoom-1.10/d_englsh.h
  19. +122 −0 linuxdoom-1.10/d_event.h
  20. +433 −0 linuxdoom-1.10/d_french.h
  21. +138 −0 linuxdoom-1.10/d_items.c
  22. +52 −0 linuxdoom-1.10/d_items.h
  23. +1,171 −0 linuxdoom-1.10/d_main.c
  24. +64 −0 linuxdoom-1.10/d_main.h
  25. +767 −0 linuxdoom-1.10/d_net.c
  26. +149 −0 linuxdoom-1.10/d_net.h
  27. +219 −0 linuxdoom-1.10/d_player.h
  28. +51 −0 linuxdoom-1.10/d_textur.h
  29. +79 −0 linuxdoom-1.10/d_think.h
  30. +53 −0 linuxdoom-1.10/d_ticcmd.h
  31. +222 −0 linuxdoom-1.10/doomdata.h
  32. +38 −0 linuxdoom-1.10/doomdef.c
  33. +338 −0 linuxdoom-1.10/doomdef.h
  34. +46 −0 linuxdoom-1.10/doomstat.c
  35. +296 −0 linuxdoom-1.10/doomstat.h
  36. +66 −0 linuxdoom-1.10/doomtype.h
  37. +72 −0 linuxdoom-1.10/dstrings.c
  38. +66 −0 linuxdoom-1.10/dstrings.h
  39. +738 −0 linuxdoom-1.10/f_finale.c
  40. +53 −0 linuxdoom-1.10/f_finale.h
  41. +302 −0 linuxdoom-1.10/f_wipe.c
  42. +71 −0 linuxdoom-1.10/f_wipe.h
  43. +1,690 −0 linuxdoom-1.10/g_game.c
  44. +79 −0 linuxdoom-1.10/g_game.h
  45. +354 −0 linuxdoom-1.10/hu_lib.c
  46. +196 −0 linuxdoom-1.10/hu_lib.h
  47. +759 −0 linuxdoom-1.10/hu_stuff.c
  48. +66 −0 linuxdoom-1.10/hu_stuff.h
  49. +45 −0 linuxdoom-1.10/i_main.c
  50. +348 −0 linuxdoom-1.10/i_net.c
  51. +45 −0 linuxdoom-1.10/i_net.h
  52. +985 −0 linuxdoom-1.10/i_sound.c
  53. +122 −0 linuxdoom-1.10/i_sound.h
  54. +183 −0 linuxdoom-1.10/i_system.c
  55. +97 −0 linuxdoom-1.10/i_system.h
  56. +1,050 −0 linuxdoom-1.10/i_video.c
  57. +63 −0 linuxdoom-1.10/i_video.h
  58. +4,670 −0 linuxdoom-1.10/info.c
  59. +1,340 −0 linuxdoom-1.10/info.h
  60. +56 −0 linuxdoom-1.10/m_argv.c
  61. +42 −0 linuxdoom-1.10/m_argv.h
  62. +64 −0 linuxdoom-1.10/m_bbox.c
  63. +55 −0 linuxdoom-1.10/m_bbox.h
  64. +101 −0 linuxdoom-1.10/m_cheat.c
  65. +58 −0 linuxdoom-1.10/m_cheat.h
  66. +87 −0 linuxdoom-1.10/m_fixed.c
  67. +51 −0 linuxdoom-1.10/m_fixed.h
  68. +1,893 −0 linuxdoom-1.10/m_menu.c
  69. +67 −0 linuxdoom-1.10/m_menu.h
  70. +534 −0 linuxdoom-1.10/m_misc.c
  71. +65 −0 linuxdoom-1.10/m_misc.h
  72. +76 −0 linuxdoom-1.10/m_random.c
  73. +47 −0 linuxdoom-1.10/m_random.h
  74. +57 −0 linuxdoom-1.10/m_swap.c
  75. +52 −0 linuxdoom-1.10/m_swap.h
  76. +335 −0 linuxdoom-1.10/p_ceilng.c
  77. +764 −0 linuxdoom-1.10/p_doors.c
  78. +2,008 −0 linuxdoom-1.10/p_enemy.c
  79. +555 −0 linuxdoom-1.10/p_floor.c
  80. +918 −0 linuxdoom-1.10/p_inter.c
  81. +41 −0 linuxdoom-1.10/p_inter.h
  82. +357 −0 linuxdoom-1.10/p_lights.c
  83. +289 −0 linuxdoom-1.10/p_local.h
  84. +1,339 −0 linuxdoom-1.10/p_map.c
  85. +883 −0 linuxdoom-1.10/p_maputl.c
  86. +988 −0 linuxdoom-1.10/p_mobj.c
  87. +295 −0 linuxdoom-1.10/p_mobj.h
  88. +314 −0 linuxdoom-1.10/p_plats.c
  89. +879 −0 linuxdoom-1.10/p_pspr.c
  90. +82 −0 linuxdoom-1.10/p_pspr.h
  91. +586 −0 linuxdoom-1.10/p_saveg.c
  92. +51 −0 linuxdoom-1.10/p_saveg.h
  93. +708 −0 linuxdoom-1.10/p_setup.c
  94. +48 −0 linuxdoom-1.10/p_setup.h
  95. +349 −0 linuxdoom-1.10/p_sight.c
  96. +1,362 −0 linuxdoom-1.10/p_spec.c
  97. +645 −0 linuxdoom-1.10/p_spec.h
  98. +654 −0 linuxdoom-1.10/p_switch.c
  99. +132 −0 linuxdoom-1.10/p_telept.c
  100. +158 −0 linuxdoom-1.10/p_tick.c
  101. +44 −0 linuxdoom-1.10/p_tick.h
  102. +386 −0 linuxdoom-1.10/p_user.c
  103. +580 −0 linuxdoom-1.10/r_bsp.c
  104. +72 −0 linuxdoom-1.10/r_bsp.h
  105. +849 −0 linuxdoom-1.10/r_data.c
  106. +62 −0 linuxdoom-1.10/r_data.h
  107. +490 −0 linuxdoom-1.10/r_defs.h
  108. +877 −0 linuxdoom-1.10/r_draw.c
  109. +115 −0 linuxdoom-1.10/r_draw.h
  110. +53 −0 linuxdoom-1.10/r_local.h
  111. +898 −0 linuxdoom-1.10/r_main.c
  112. +172 −0 linuxdoom-1.10/r_main.h
  113. +453 −0 linuxdoom-1.10/r_plane.c
  114. +87 −0 linuxdoom-1.10/r_plane.h
  115. +746 −0 linuxdoom-1.10/r_segs.c
  116. +44 −0 linuxdoom-1.10/r_segs.h
  117. +62 −0 linuxdoom-1.10/r_sky.c
  118. +48 −0 linuxdoom-1.10/r_sky.h
  119. +138 −0 linuxdoom-1.10/r_state.h
  120. +989 −0 linuxdoom-1.10/r_things.c
  121. +76 −0 linuxdoom-1.10/r_things.h
  122. +879 −0 linuxdoom-1.10/s_sound.c
  123. +109 −0 linuxdoom-1.10/s_sound.h
  124. +228 −0 linuxdoom-1.10/sounds.c
  125. +297 −0 linuxdoom-1.10/sounds.h
  126. +293 −0 linuxdoom-1.10/st_lib.c
  127. +226 −0 linuxdoom-1.10/st_lib.h
  128. +1,471 −0 linuxdoom-1.10/st_stuff.c
  129. +86 −0 linuxdoom-1.10/st_stuff.h
  130. +2,130 −0 linuxdoom-1.10/tables.c
  131. +100 −0 linuxdoom-1.10/tables.h
  132. +493 −0 linuxdoom-1.10/v_video.c
  133. +119 −0 linuxdoom-1.10/v_video.h
  134. +577 −0 linuxdoom-1.10/w_wad.c
  135. +89 −0 linuxdoom-1.10/w_wad.h
  136. +1,850 −0 linuxdoom-1.10/wi_stuff.c
  137. +54 −0 linuxdoom-1.10/wi_stuff.h
  138. +467 −0 linuxdoom-1.10/z_zone.c
  139. +86 −0 linuxdoom-1.10/z_zone.h
  140. +39 −0 sndserv/Makefile
  141. +15 −0 sndserv/README.sndserv
  142. +118 −0 sndserv/linux.c
  143. +239 −0 sndserv/sounds.c
  144. +241 −0 sndserv/sounds.h
  145. +740 −0 sndserv/soundsrv.c
  146. +58 −0 sndserv/soundsrv.h
  147. +312 −0 sndserv/soundst.h
  148. +256 −0 sndserv/wadread.c
  149. +62 −0 sndserv/wadread.h
@@ -0,0 +1,78 @@
Here it is, at long last. The DOOM source code is released for your
non-profit use. You still need real DOOM data to work with this code.
If you don't actually own a real copy of one of the DOOMs, you should
still be able to find them at software stores.

This comment has been minimized.

Show comment
Hide comment
@SHADOWELITE7

SHADOWELITE7 Aug 20, 2018

can I still be able to use the one on steam since they aren't in software stores

@SHADOWELITE7

SHADOWELITE7 Aug 20, 2018

can I still be able to use the one on steam since they aren't in software stores

Many thanks to Bernd Kreimeier for taking the time to clean up the
project and make sure that it actually works. Projects tends to rot if
you leave it alone for a few years, and it takes effort for someone to
deal with it again.
The bad news: this code only compiles and runs on linux. We couldn't
release the dos code because of a copyrighted sound library we used
(wow, was that a mistake -- I write my own sound code now), and I
honestly don't even know what happened to the port that microsoft did
to windows.
Still, the code is quite portable, and it should be straightforward to
bring it up on just about any platform.
I wrote this code a long, long time ago, and there are plenty of things
that seem downright silly in retrospect (using polar coordinates for
clipping comes to mind), but overall it should still be a usefull base
to experiment and build on.
The basic rendering concept -- horizontal and vertical lines of constant
Z with fixed light shading per band was dead-on, but the implementation
could be improved dramatically from the original code if it were
revisited. The way the rendering proceded from walls to floors to
sprites could be collapsed into a single front-to-back walk of the bsp
tree to collect information, then draw all the contents of a subsector
on the way back up the tree. It requires treating floors and ceilings
as polygons, rather than just the gaps between walls, and it requires
clipping sprite billboards into subsector fragments, but it would be
The Right Thing.
The movement and line of sight checking against the lines is one of the
bigger misses that I look back on. It is messy code that had some
failure cases, and there was a vastly simpler (and faster) solution
sitting in front of my face. I used the BSP tree for rendering things,
but I didn't realize at the time that it could also be used for
environment testing. Replacing the line of sight test with a bsp line
clip would be pretty easy. Sweeping volumes for movement gets a bit
tougher, and touches on many of the challenges faced in quake / quake2
with edge bevels on polyhedrons.
Some project ideas:
Port it to your favorite operating system.
Add some rendering features -- transparency, look up / down, slopes,
etc.
Add some game features -- weapons, jumping, ducking, flying, etc.
Create a packet server based internet game.
Create a client / server based internet game.
Do a 3D accelerated version. On modern hardware (fast pentium + 3DFX)
you probably wouldn't even need to be clever -- you could just draw the
entire level and get reasonable speed. With a touch of effort, it should
easily lock at 60 fps (well, there are some issues with DOOM's 35 hz
timebase...). The biggest issues would probably be the non-power of two
texture sizes and the walls composed of multiple textures.
I don't have a real good guess at how many people are going to be
playing with this, but if significant projects are undertaken, it would
be cool to see a level of community cooperation. I know that most early
projects are going to be rough hacks done in isolation, but I would be
very pleased to see a coordinated 'net release of an improved, backwards
compatable version of DOOM on multiple platforms next year.
Have fun.
John Carmack
12-23-97
@@ -0,0 +1,109 @@
/ChangeLog/1.14/Mon Feb 3 22:45:08 1997//
/DOOMLIC.TXT/1.3/Sun Jan 26 07:44:56 1997//
/FILES/1.1/Sun Jan 19 17:22:41 1997//
/FILES2/1.1/Sun Jan 19 17:22:42 1997//
/Makefile/1.6/Mon Feb 3 22:45:08 1997//
/am_data.h/1.2/Tue Jan 21 18:59:56 1997//
/am_map.c/1.4/Mon Feb 3 21:24:33 1997//
/am_map.h/1.2/Tue Jan 21 18:59:56 1997//
/d_englsh.h/1.1/Mon Feb 3 21:48:03 1997//
/d_event.h/1.2/Mon Feb 3 22:01:47 1997//
/d_french.h/1.3/Mon Feb 3 21:48:03 1997//
/d_main.c/1.8/Mon Feb 3 22:45:09 1997//
/d_net.c/1.3/Mon Feb 3 22:01:47 1997//
/d_textur.h/1.1/Mon Feb 3 16:47:51 1997//
/doomdata.h/1.5/Mon Feb 3 22:45:09 1997//
/doomdef.h/1.9/Mon Feb 3 22:45:09 1997//
/doomtype.h/1.2/Mon Feb 3 22:45:09 1997//
/dstrings.h/1.4/Mon Feb 3 21:48:03 1997//
/dutils.c/1.5/Mon Feb 3 17:11:23 1997//
/dutils.h/1.4/Mon Feb 3 17:11:23 1997//
/f_finale.c/1.5/Mon Feb 3 21:26:34 1997//
/f_finale.h/1.1/Mon Feb 3 21:26:34 1997//
/f_wipe.c/1.2/Mon Feb 3 22:45:09 1997//
/f_wipe.h/1.1/Mon Feb 3 17:11:23 1997//
/fpfunc.S/1.1/Sun Jan 19 17:22:43 1997//
/g_game.c/1.8/Mon Feb 3 22:45:09 1997//
/g_game.h/1.1/Mon Feb 3 21:34:47 1997//
/hu_lib.c/1.3/Sun Jan 26 07:44:58 1997//
/hu_lib.h/1.4/Mon Feb 3 16:47:52 1997//
/hu_stuff.c/1.4/Mon Feb 3 16:47:52 1997//
/hu_stuff.h/1.3/Sun Jan 26 07:44:58 1997//
/i_dga.c/1.3/Sun Jan 26 07:44:58 1997//
/i_ibm.c/1.3/Sun Jan 26 07:44:58 1997//
/i_main.c/1.4/Mon Feb 3 22:45:10 1997//
/i_pcnet.c/1.3/Sun Jan 26 07:44:59 1997//
/i_sound.c/1.3/Sun Jan 26 07:44:59 1997//
/i_sound.h/1.3/Sun Jan 26 07:44:59 1997//
/i_svga.c/1.3/Sun Jan 26 07:44:59 1997//
/i_unix.c/1.5/Mon Feb 3 22:45:10 1997//
/i_x.c/1.6/Mon Feb 3 22:45:10 1997//
/info.c/1.3/Sun Jan 26 07:45:00 1997//
/info.h/1.3/Sun Jan 26 07:45:00 1997//
/irix.c/1.3/Sun Jan 26 07:45:00 1997//
/irix.h/1.3/Sun Jan 26 07:45:01 1997//
/linux.c/1.3/Sun Jan 26 07:45:01 1997//
/m_argv.c/1.1/Mon Feb 3 22:45:10 1997//
/m_argv.h/1.1/Mon Feb 3 22:45:10 1997//
/m_bbox.c/1.1/Mon Feb 3 22:45:10 1997//
/m_bbox.h/1.1/Mon Feb 3 22:45:10 1997//
/m_cheat.c/1.1/Mon Feb 3 21:24:34 1997//
/m_cheat.h/1.1/Mon Feb 3 21:24:34 1997//
/m_menu.c/1.7/Mon Feb 3 22:45:10 1997//
/m_menu.h/1.1/Mon Feb 3 22:01:49 1997//
/m_misc.c/1.6/Mon Feb 3 22:45:10 1997//
/m_misc.h/1.1/Mon Feb 3 22:45:11 1997//
/m_random.c/1.1/Mon Feb 3 22:45:11 1997//
/m_random.h/1.1/Mon Feb 3 22:45:11 1997//
/p_ceilng.c/1.4/Mon Feb 3 16:47:53 1997//
/p_doors.c/1.4/Mon Feb 3 16:47:53 1997//
/p_enemy.c/1.5/Mon Feb 3 22:45:11 1997//
/p_floor.c/1.4/Mon Feb 3 16:47:54 1997//
/p_inter.c/1.4/Mon Feb 3 22:45:11 1997//
/p_lights.c/1.5/Mon Feb 3 22:45:11 1997//
/p_local.h/1.3/Tue Jan 28 22:08:27 1997//
/p_map.c/1.5/Mon Feb 3 22:45:11 1997//
/p_maputl.c/1.5/Mon Feb 3 22:45:11 1997//
/p_mobj.c/1.5/Mon Feb 3 22:45:12 1997//
/p_plats.c/1.5/Mon Feb 3 22:45:12 1997//
/p_pspr.c/1.5/Mon Feb 3 22:45:12 1997//
/p_setup.c/1.5/Mon Feb 3 22:45:12 1997//
/p_sight.c/1.3/Tue Jan 28 22:08:28 1997//
/p_spec.c/1.6/Mon Feb 3 22:45:12 1997//
/p_spec.h/1.3/Tue Jan 28 22:08:29 1997//
/p_switch.c/1.3/Tue Jan 28 22:08:29 1997//
/p_telept.c/1.3/Tue Jan 28 22:08:29 1997//
/p_tick.c/1.4/Mon Feb 3 16:47:55 1997//
/p_user.c/1.3/Tue Jan 28 22:08:29 1997//
/r_bsp.c/1.4/Mon Feb 3 22:45:12 1997//
/r_data.c/1.4/Mon Feb 3 16:47:55 1997//
/r_draw.c/1.4/Mon Feb 3 16:47:55 1997//
/r_local.h/1.4/Mon Feb 3 21:26:34 1997//
/r_main.c/1.5/Mon Feb 3 22:45:12 1997//
/r_plane.c/1.4/Mon Feb 3 16:47:55 1997//
/r_segs.c/1.3/Wed Jan 29 20:10:19 1997//
/r_things.c/1.5/Mon Feb 3 16:47:56 1997//
/s_sound.c/1.6/Mon Feb 3 22:45:12 1997//
/sounds.c/1.3/Wed Jan 29 22:40:44 1997//
/sounds.h/1.3/Wed Jan 29 22:40:44 1997//
/soundsrv.c/1.3/Wed Jan 29 22:40:44 1997//
/soundsrv.h/1.3/Wed Jan 29 22:40:44 1997//
/soundst.h/1.3/Wed Jan 29 22:40:45 1997//
/st_lib.c/1.4/Mon Feb 3 16:47:56 1997//
/st_lib.h/1.4/Mon Feb 3 16:47:56 1997//
/st_stuff.c/1.6/Mon Feb 3 22:45:13 1997//
/st_stuff.h/1.3/Thu Jan 30 19:54:22 1997//
/sun.c/1.3/Thu Jan 30 19:54:22 1997//
/tables.c/1.4/Mon Feb 3 16:47:57 1997//
/tables.h/1.1/Mon Feb 3 16:47:57 1997//
/tmap.S/1.1/Sun Jan 19 17:22:51 1997//
/v_video.c/1.5/Mon Feb 3 22:45:13 1997//
/v_video.h/1.2/Mon Feb 3 17:11:59 1997//
/w_wad.c/1.5/Mon Feb 3 16:47:57 1997//
/wadread.c/1.3/Thu Jan 30 19:54:23 1997//
/wadread.h/1.3/Thu Jan 30 19:54:23 1997//
/wi_data.h/1.3/Thu Jan 30 19:54:23 1997//
/wi_stuff.c/1.7/Mon Feb 3 22:45:13 1997//
/wi_stuff.h/1.4/Mon Feb 3 16:47:58 1997//
/z_zone.c/1.4/Mon Feb 3 16:47:58 1997//
/z_zone.h/1.1/Mon Feb 3 16:47:58 1997//
@@ -0,0 +1 @@
/info/cvsroot/id/id_doom
@@ -0,0 +1 @@
/info/cvsroot/
Oops, something went wrong.

0 comments on commit 4eb368a

Please sign in to comment.