/wolf3d

A simple raycaster with extra flavor borrowed from Wolfenstein 3D.

Primary LanguageC

Wolf3d

A classic Wolfenstein 3D clone aimed at learning and reproducing a simple version of John Carmack's raycasting method as well as building a flexible map editor.

Features

  • Rudimentary 3D graphics achieved through raycasting
  • A maze with varying wall textures based off the cardinal direction that the wall is facing
  • Smooth movement
  • Wall collision
  • Floor, Ceiling, and Skybox
  • Decorative, object sprites
  • Enemy sprites drawn in 8 different directions
  • Random weight based decision making enemy AI
  • Very simple gunplay
  • Sounds and Music
  • Key which can be picked up and used on locked door
  • Openable, animated doors
  • Simple HUD displaying current health
  • Flexible map editor and spritesheet for building more levels

Compiling and running

Run make and an executable will be created. Run ./wolf3d path_to_map path_to_spritesheet. Spritesheet is an optional argument.

If the executable fails to run. Try "brew install libmodplug". Only tested on OS X.

Click for Gameplay Video

IMAGE ALT TEXT HERE

Screenshots

alt-text

alt-text

alt-text

alt-text