A php port of the 1993's DOOM based on Amro Ibrahim's DIYDoom.
Make sure you've placed DOOM1.wad
in the root path.
$ ./doom
The above demo shows how 2D and 3D rendering of the map currently works.
Textures aren't yet being applied.
Every solid object has a texture (from WAD definitions) and such definitions set a texture name. For each texture name I adopted a random color and cached it. That's how the two columns appear with the same colors on the screen.
- Read WAD file
- Render automap
- Traverse BSP tree
- Render scene lines
- Clip solid walls
- Render scene rectangles
- Add perspective
- Draw floor and ceiling
- Draw textures
- Move around