Hurlinstein3D
A first-person procedural dungeon built with grid raycasting, DDA and PixiJS 8.


About the game
The world is infinite: it is generated in 16 by 16 cell chunks as you explore it, and each area stays the same when you come back. Enemies patrol and chase you when they have you in their line of sight. You have a shotgun with a magazine and reloads, and a minimap.
Controls
- W or up arrow: move forward.
- S or down arrow: move backward.
- A and D: strafe left and right.
- Left and right arrows: turn.
- Mouse: turn. The first click on the game captures the mouse.
- Space or left click: fire.
- R or right click: reload.
- P: admin panel, with FPS, fisheye mode, rays on the minimap and a stress test.
- Esc: back to this page.
Requirements
A computer with a keyboard. Chrome is the recommended browser. Each time you press Play, a new game starts.
How it works
- The camera uses the dir and plane vectors from Lode Vandevenne’s raycasting tutorial.
- Each ray walks the grid with DDA.
- Walls are drawn with the perpendicular distance, which avoids the fisheye effect.
- The world is stored in chunks, in a Map with a Cantor key.
- Enemy sprites use a z-buffer, so the walls in front of them hide them.
Credits
- Course: Simulación I, Licenciatura en Desarrollo de Videojuegos y Simulación, Universidad Nacional de Hurlingham (UNAHUR), 2026.
- Professor: Facundo Toufick Saiegh.
- Team: Juan Manuel Gelay and Alejo Hutmacher.
Third parties
- PixiJS 8.21.0, MIT license.
- Lucide icons, ISC license.
- Husk Mutant enemy sprite by HorrorMovieRei on OpenGameArt, CC0. The logo is cropped from it.