.png?etag=%2211b914-69ab601f%22&sourceContentType=image%2Fpng&ignoreAspectRatio&resize=444%2B400&extract=0%2B0%2B444%2B400)
Complete game loop with main menu, 4-page tutorial, floor progression and session based gameplay.
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.
.png?etag=%2252f0-69ab601f%22&sourceContentType=image%2Fpng&ignoreAspectRatio&resize=601%2B338&extract=1%2B0%2B600%2B338)

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.
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.
