/mansion

The Mansion of Dr Anton - WebGL game

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

The Mansion of Dr Anton

This is the source code for the WebGL 3d game I have on my website: antongerdelan.net/games/dungeo

I made it on a sick day when feeling delirious, and added bits and pieces over the next few eves. It was going to be a dungeon explorer but it just turned into a mash-up of games I had in the '90s; Wolfenstein 3-D, Dangerous Dave in the Haunted Mansion, Nightmare 3-D, Ken's Labyrinth.

devshot

Features

  • awesome low-level WebGL hardware-accelerated 3d browser graphics in retro style
  • directional shading (instead of Phong etc.)
  • diminished lighting
  • manual gamma correction
  • sort transparent items before draw
  • image-based map format w/canvas2d
  • actor/map collision detection
  • rudimentary AI
  • cheap visibility culling
  • fake framebuffer post-processing fx
  • shooting hit detection with point vs. line distance check
  • handsomest game boss ever
  • secret passages (4 of them!)

Sound Attrib

  • toccata - wikipedia

Known Bugs

  • sometimes boss doesn't seem to drop the gold key (numerical error with location?)