Code covered by the BSD License  

Highlights from
Wolfenstein 3D (Tech Demo)

  • Wolfenstein 3D Tech Demo A playable Wolfenstein 3D demo featuring a real-time discrete ray casting engine. Possibly the coolest MATLAB game demo ever.
  • wolf3d WOLF3D - The main file for Wolfenstein 3D for MATLAB
  • View all files
from Wolfenstein 3D (Tech Demo) by Mingjing Zhang
A playable Wolfenstein 3D demo featuring real-time ray casting. My most bestest creation by far.

Wolfenstein 3D Tech Demo

A playable Wolfenstein 3D demo featuring a real-time discrete ray casting engine. Possibly the coolest MATLAB game demo ever.

This is the first 3D game (demo) ever made with 'pure' MATLAB available on MATLAB Central.
In this demo, you can freely roam in a Wolfenstein-style environment. The game runs at 40~60 FPS on my three year old Lenovo G460.

The sole purpose of this demo is to show off the wolfenstein-style ray-casting engine I have written, which is an implementation of the ray casting algorithm on this page:
http://www.permadi.com/tutorial/raycast/

Currently there is no collision detection, so feel free to go through walls as much as you want to. There is a switch hidden somewhere in this level, but you won't be able to interact with it...
There are no doors in this level.
How to play:
-----------------
WASD - move //
Left/Right arrow - rotate //
Enter - mouse on/off //
ESC - quit demo//
Move mouse - mouselook (when mouse is on) //
mouse wheel - zoom in/out
--------------------

Enjoy!

Contact us