Technology1 min read

GTA6-like as a 942Kb UEFI bootable image

By · Published by Everything Blog

In short

A developer built an open-world, Grand Theft Auto-style experience contained entirely within a 964,608-byte file titled game.efi that bypasses traditional operating systems. The virtual Miami environment incorporates real-world geographic data, including lidar scans and county records, to establish its cityscape. Players can interact using standard keyboard and mouse inputs to drive, shoot, swap weapons, and collect taxi fares. Those wishing to compile the application from source code require the clang compiler alongside the lld-link tool.

Key points

  • The game bypasses standard operating systems like Windows by functioning as a standalone…: The game bypasses standard operating systems like Windows by functioning as a standalone UEFI bootable image.
  • All pixel rendering tasks are handled directly by the computer processor rather than a de…: All pixel rendering tasks are handled directly by the computer processor rather than a dedicated graphics pipeline.
  • Users can run the software via the QEMU emulator either by compiling with clang and lld-l…: Users can run the software via the QEMU emulator either by compiling with clang and lld-link or by launching the pre-built file.

Sources checked by our analysis pipeline: 1

A GTA style game set in the real Miami that boots straight from UEFI, no Windows under it. The whole game is game.efi

, 964,608 bytes, and the CPU draws every pixel.

Made it for a video on my channel: https://www.youtube.com/@CodingWalaXD

sh build.sh

mkdir -p esp/EFI/BOOT && cp game.efi esp/EFI/BOOT/BOOTX64.EFI

qemu-system-x86_64 -machine q35 -m 512 -bios OVMF.fd -drive format=raw,file=fat:rw:esp

build needs clang and lld-link, or skip it and use the game.efi

that's already here. I've only run it in qemu so far.

arrows or wasd to drive, enter to get in and out, mouse for the camera, m for the map, j in a taxi for fares, 1 2 3 for weapons, ctrl to shoot.

The map is baked with osm/bake.py

from OpenStreetMap, Miami-Dade County data, a NOAA lidar scan and NAIP photos. lidar/steps.txt

has how, credits are in MAP_DATA.txt

and PEOPLE_DATA.txt

.

Technology