from Hacker News

Quake in 13kb (2021)

by pfych on 6/3/24, 1:39 AM with 76 comments

  • by tithe on 6/3/24, 1:45 AM

    Excellent.

    I propose we inscribe the Doom and Quake source onto twin golden platters[0] and send them into outer space with the next interstellar probe.

    [0] https://en.wikipedia.org/wiki/Voyager_Golden_Record

  • by nilstycho on 6/3/24, 3:41 AM

  • by mdp2021 on 6/3/24, 8:14 AM

    It uses generative graphics like a simplification of the technique of Farbrausch (seen in its 64kb intros and usable in its ".werkkzeug" editor).

    > [the] library supports only 5 different functions: Embossed Rectangle; Embossed Grid; Noise; [draw] Text; Draw previous texture

    https://github.com/phoboslab/q1k3/blob/master/source/ttt.js

  • by tcsenpai on 6/3/24, 2:16 AM

    So technically this could fit in 5 QR codes.

    I say technically because neither by building or downloading with wget I can get a local html version working, so I guess it would be useful to waste time creating 5 QR codes.

  • by casenmgreen on 6/3/24, 5:59 AM

    I need to be able to invert the Y-axis on the mouse.

    It looks amazing, but I can't play as it is.

  • by jl6 on 6/3/24, 10:06 AM

    Brilliant. It contains just enough content to re-activate the neurons where my memories of the original are stored, and my brain is filling in the rest.
  • by system2 on 6/3/24, 7:04 AM

    It is mind boggling for 13kb. After a few minutes I didn't even feel the difference. Just perfect.
  • by parag0n on 6/3/24, 9:05 AM

    Great project, and clean code, thanks for this. Also interesting how you encode the soundtrack in js instead of putting it in the assets folder and then proceeding to sample the soundtrack in js yourself!

    "let music_data = [6014,21,88,[[[7,0,0,1,255,0,7,0,0,1,255,0,0,100,0,..."

  • by jlund-molfese on 6/3/24, 3:34 AM

    For anyone playing in Safari on a Mac—there seems to be something about games which capture the mouse that makes the cursor really slow. But holding down the left mouse button will bring it back to a normal speed.
  • by JoachimS on 6/3/24, 9:26 AM

    Dang, could we change the title to 13 kB(yte), which is in the title of the the page? It is not 13 kb(it), which in this case a quite significant difference.
  • by starship006 on 6/3/24, 4:49 AM

  • by jack_pp on 6/3/24, 3:30 AM

    weird to play without a crosshair, did the original quake not have one?
  • by mdaniel on 6/3/24, 4:15 AM

    I promise this is not intended as snark: if you already have .php files used for the build, why then do string and memory management in C?
  • by treve on 6/3/24, 3:07 AM

    Mind bending!