开发者用 942KB UEFI 镜像打造类 GTA 游戏

原标题:GTA6-like as a 942Kb UEFI bootable image
58AI 研判分

开发者发布 gta6-uefi 项目,将一款类 GTA 游戏完整打包为 964,608 字节的 game.efi,直接由 UEFI 启动,无需 Windows 或操作系统,所有像素均由 CPU 软件渲染。地图基于 OpenStreetMap 迈阿密-戴德县数据、NOAA 激光雷达扫描与 NAIP 航拍照片烘焙生成,目前仅在 QEMU 中验证运行。

报道正文

gta6-uefi

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

run

文本
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.