Hackaday · Creativity & design
DOOM Game Ported to SQL
SQL, typically used for database management, has been leveraged to port the classic game DOOM, showcasing its capabilities as a programming language.

A team at CedarDB has successfully ported the original DOOM game to SQL, demonstrating the language's potential beyond data management. The project stores game data in SQL tables and utilizes complex SQL code for rendering and timing.
The rendering process alone involves 1300 lines of SQL across 89 common table expressions (CTEs), with an additional 4000 lines for the rest of the game's logic. Python is used for handling keyboard inputs, timing, and displaying the output.
DOOM's original rendering techniques, developed before dedicated graphics cards and employing tricks to simulate 3D, are surprisingly well-suited to SQL's data transformation capabilities.
The source code for this SQL-based DOOM port is publicly available on GitHub. The article also mentions other unique DOOM implementations, including versions made with regular expressions and Microsoft Word.
AI-samenvatting op basis van de bron.
Hackaday