Newshot

类似GTA6的游戏,竟做成942Kb的可UEFI启动镜像

Translation(model translation, not the source's own text)

仓库文件导航

题图
题图

gta6-uefi

一款以真实迈阿密为背景的 GTA 风格游戏,直接从 UEFI 启动,底下没有 Windows。整个游戏就是 game.efi,964,608 字节,每一个像素都由 CPU 绘制。

为我频道上的一期视频做的: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
      

构建需要 clang 和 lld-link,或者跳过构建,直接用这里已有的 game.efi。我目前只在 qemu 里跑过。

方向键或 wasd 开车,回车上下车,鼠标控制镜头,m 打开地图,在出租车里按 j 接客,1 2 3 切换武器,ctrl 射击。

地图是用 osm/bake.py 从 OpenStreetMap 的 Miami-Dade County 数据、一份 NOAA 激光雷达扫描和 NAIP 照片烘焙出来的。激光雷达的处理方法写在 lidar/steps.txt 里,致谢信息在 MAP_DATA.txt 和 PEOPLE_DATA.txt 中。

Only about 758 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗