hn.today

C64 3D first person game written in assembly by an LLM

github.com120 points46 comments
Screenshot of C64 3D first person game written in assembly by an LLM

Lest is a first-person 3D game for an unmodified Commodore 64, built in 6502 assembly with Claude’s assistance. Its central achievement is making the view smoother and more detailed than the sub-10-frame-per-second, blocky graphics common in earlier C64 3D games. The renderer uses a 40-by-25 character-mode display whose cells form a 160-by-200 multicolour image. It relies on extensive optimisations: a character set derived from rendered imagery, mirrored rendering that halves the work, ray casting focused on likely wall corners, interpolation between edges, cached screen regions, and hardware sprites with culling and occlusion. The game’s ten levels use a biblical garden-and-exile setting, with distinct effects and features loaded only where needed.

The project is playable in a browser or through C64 disk and EasyFlash cartridge images, and supports PAL and NTSC systems, keyboard or joystick controls, and optional builds for Dvorak keyboards and different SID audio characteristics. Its build system generates the game and assets, assembles the code, arranges memory, creates disk and cartridge versions, and checks conditions such as memory overlaps and opcode requirements. A fast loader uses the 1541 disk drive’s own processor to speed transfers; cartridge builds avoid a disk drive altogether. The repository also includes rendering and testing documentation, performance tools, level maps, and asset-generation utilities. The code, artwork, and level designs are released under the MIT licence, alongside separately licensed third-party components.

Read on github.com46 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.