ASCII Dungeon Crawler

The Game Loop


Complete game loop with main menu, 4-page tutorial, floor progression and session based gameplay.

Pseudo-3D Raycaster


Wolfenstein-style DDA raycasting — each frame casts 800 rays, samples per-pixel texture data for walls, floor and ceiling, and resolves sprite depth against a Z-buffer for correct occlusion.

Quadratic Light Falloff


Wall brightness drops as distance squared from the torch radius, producing a sharp transition from lit to dark that mimics how real light behaves. North/South and East/West wall faces render at different brightness levels to fake directional shading without a light source calculation.

DDA - Digital Differential Analysis


Digital Differential Analysis raycasting — for each of the 800 screen columns, a ray steps through the tile grid tracking cumulative distance to the next X and Y boundary. The closer boundary is crossed first, guaranteeing the shortest possible path to a wall hit with no floating point drift.