Skip to content

lazarv/wolf3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wolfenstein 3D HTML5 Port

This is an HTML5/JavaScript port of Wolfenstein 3D, built in April-May 2012. It is shared as a snapshot of how the browser port was put together at the time: static HTML, CSS, JavaScript, canvas rendering, and XHR-loaded resources.

The port is available at wolf3d.wadcmd.com.

The project has no build step for normal use. Serve the folder from a static file server and open the local URL.

It was compatible with Internet Explorer 9, Chrome, and Firefox versions available at the time, and it remains compatible with current browser versions.

Running

The open-source repository is intended to exclude Wolfenstein 3D and Spear of Destiny data directories. To preview the port while keeping those files out of git, run a static server that proxies missing files to the hosted copy:

npm install
npm start

Then open:

http://localhost:8080/

The npm start command uses http-server with --proxy https://wolf3d.wadcmd.com/. http-server serves files found in this folder first, then proxies unresolved requests. That means local code is loaded from this repository, while omitted directories such as images/, maps/, sounds/, and music/ can still be fetched from the hosted copy for local testing.

You can also run it directly:

npx http-server . -p 8080 -c-1 --proxy https://wolf3d.wadcmd.com/

Repository Contents

Included:

  • Original HTML5/JavaScript source code
  • CSS and HTML files needed by the static app

Not included:

  • Wolfenstein 3D or Spear of Destiny maps
  • Sprites, wall textures, UI artwork, logos, icons, and other images
  • Music and sound effects

The omitted directories are ignored in .gitignore so they are not accidentally committed later. They may still exist in a local working copy for testing.

Article Draft

A dev.to-ready architecture article is included at ARTICLE.md.

Copyright And Trademarks

Wolfenstein 3D, Spear of Destiny, id Software, and all related names, characters, logos, artwork, level data, sounds, music, text, and other game data are the property of id Software LLC and/or their respective rights holders. All rights are reserved by those owners.

This repository is not affiliated with, endorsed by, sponsored by, or approved by id Software, ZeniMax Media, Bethesda Softworks, Microsoft, or any related entity.

The source code here is shared only as the browser port source. This repository does not grant any license or right to redistribute, reuse, or download copyrighted game data.

About

Wolfenstein 3D HTML5 port from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors