menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Databases

>

Abusing Du...
source image

Hackaday

1M

read

31

img
dot

Image Credit: Hackaday

Abusing DuckDB-WASM To Create Doom In SQL

  • A Doom-lite clone has been created using SQL instead of JavaScript to handle the game loop.
  • The entire game world state is modeled in a database, with the player's view rendered using SQL VIEW feature for raytracing.
  • Events such as movement, bullets hitting a wall, and enemy impacts are defined as SQL statements.
  • JavaScript is used to glue the SQL chunks together, handle sprite Z-buffer checks, and process keyboard input.

Read Full Article

like

1 Like

For uninterrupted reading, download the app