Get the latest tech news

Let's write a video game from scratch like it's 1987


Published on 2024-06-20. In a previous article I’ve done the ‘Hello, world!’ of GUIs in assembly: A black window with a white text, using X11 without any libraries, just talking directly over a socket.

In a previous article I’ve done the ‘Hello, world!’ of GUIs in assembly: A black window with a white text, using X11 without any libraries, just talking directly over a socket. The result is a ~300 KiB statically linked executable, that requires no libraries, and uses a constant ~1 MiB of resident heap memory (allocated at the start, to hold the assets). The advantage of this approach is that the application is tiny and stand-alone: statically linked with the few bits of libC it uses (and that’s it), it can be trivially compiled on every Unix, and copied around, and it will work on every machine (with the same OS/architecture that is).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of video game

video game

Related news:

News photo

Nobody Is Starting from Scratch

News photo

Cartwheel generates 3D animations from scratch to power up creators

News photo

Marvel’s What If…? Vision Pro app is an awkward mix of video game and movie