Пятница!
Игра сделана на SQL полностью, включая ИИ врагов, рендеринг, 3D raycasting и т.д.
How It Works
The game uses SQL in interesting ways:
- 3D Rendering: Uses recursive CTEs to implement raycasting
- Game state: Stored in tables (player, enemies, bullets, map)
- Physics: SQL queries handle collision detection and movement
- Rendering: Views transform the 3D world state into ASCII art
A Doom-like game using DuckDB
https://github.com/patricktrainer/duckdb-doom
Почитать подробнее как это работает можно тут
Abusing DuckDB-WASM by making SQL draw 3D graphics (Sort Of)
https://www.hey.earth/posts/duckdb-doom
Запуск происходит в WebAssembly версии DuckDB
https://github.com/duckdb/duckdb-wasm
https://shell.duckdb.org/
За наводку спасибо подписчику
>>Click here to continue<<