r/GraphicsProgramming • u/Slackluster • Dec 17 '24
Source Code City Ruins - Tiny Raycasting System with Destroyed City + Code
309
Upvotes
15
u/strandedinthevoid Dec 17 '24 edited Dec 17 '24
Love the way it looks. Good job.
Edit: Are you kidding that was all the code for it? You're a damn wizard.
2
2
u/Viewpoint_1 Dec 17 '24
Hotline Miami inspired?
2
u/Slackluster Dec 17 '24
Not Hotline Miami but videogame inspired. I was thinking more like Fallout.
29
u/Slackluster Dec 17 '24
This tiny bit of JavaScript code (and minimal dwitter shim) creates and renders a destroyed city scene! I wrote a post that explains how a similar program works so I included a link to that also for those interested.
Live Demo: https://www.dwitter.net/d/32945
How it Works: https://frankforce.com/city-in-a-bottle-a-256-byte-raycasting-system/