Top
Best
New

Posted by snoofydude 1/11/2026

This game is a single 13 KiB file that runs on Windows, Linux and in the Browser(iczelia.net)
299 points | 82 commentspage 2
ValdikSS 1/12/2026|
https://js13kgames.com/
nine_k 1/12/2026||
What entertains me most is that the thing contains three independent implementations of a graphics-based game, strung together, wrapped into a crafty multiplatform loader... and it all still takes 13 kiB.
hulitu 1/13/2026||
> The HTML version is also packed and abuses the fact that browsers will happily process all the benign garbage at the start of the file before reaching the actual HTML content.

Long live RCE. The thing looks interesting. Very close to a virus. Can it be used to make and spread a virus ?

beeflet 1/12/2026||
You don't need to rename it to an html file, just serve it with with the following header:

Content-Type: text/html

indigodaddy 1/11/2026||
Wonder why they don't give a demo/link to the browser version
nxrabl 1/12/2026|
It's the same file, you just rename it to end in '.html'
indigodaddy 1/12/2026||
sure but they have a blog and a webserver that's serving html. just put the .html version there so i dont have to download anything or mess about too much. just want to click and see it
leonidasv 1/12/2026||
Any way to run that on a Mac (besides running it in the browser)?

  $ ./snake.com
  ./snake.com: line 20: /tmp/a: cannot execute binary file
casey2 1/14/2026||
I refreshed until a got a room with 2 lemons and they both disappeared after 3 steps. What a rip

Also will this even run without /tmp?

rurban 1/14/2026||
Always Kamila! Her standing is higher than Fabrice Bellard for me. Because you can actually talk to her.
madduci 1/12/2026||
The binary relies on the runtime, so yes it is nice.

Forma instance, a static compiled and linked "hello world" in C on Linux is around ~785KB

oguz-ismail2 1/12/2026||
> a static compiled and linked "hello world" in C on Linux is around ~785KB

Huh?

    $ musl-gcc -xc -static -Wl,-z,norelro -Wl,-z,nosectionheader -Wl,-z,noseparate-code -s - <<eof
    #include <stdio.h>
    int
    main(void) {
            static const char s[] = "Hello, World!\n";
            fwrite(s, (sizeof s)-1, 1, stdout);
    }
    eof
    $ ./a.out
    Hello, World!
    $ ls -l a.out
    -rwxr-xr-x 1 oguz oguz 4976 Jan 12 09:38 a.out
And if that's not enough

    $ musl-gcc -xc -static -nostdlib -fcf-protection=none -fno-asynchronous-unwind-tables -fomit-frame-pointer -Wl,-z,norelro -Wl,-z,nosectionheader -Wl,-z,noseparate-code -s - -lc <<eof
    #include <unistd.h>
    void
    _start(void) {
            static const char s[] = "Hello, World!\n";
            write(1, s, (sizeof s)-1);
            _exit(0);
    }
    eof
    $ ./a.out
    Hello, World!
    $ ls -l a.out
    -rwxr-xr-x 1 oguz oguz 487 Jan 12 09:58 a.out
Sharlin 1/12/2026|||
Probably 785k unoptimized and unstripped with all debug info.
201984 1/12/2026|||
I'm sure that number is using glibc, not musl.
PhilipRoman 1/12/2026||
That's just because glibc is not designed for static linking. It works, but it doesn't exclude unused code, unlike with other libcs.
ptspts 1/12/2026||
It does exclude unused code. But glibc has too many inter-object-file dependencies, so too much code gets used.
More comments...