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

By hackernews · · Repos

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

▶ Watch the trailer · Play it in your browser

"He drove out the man, and at the east of the garden he placed cherubim and a flaming sword that turned every way…"

▶ Watch the trailer · Play it in your browser

Where it started

Can an unmodified C64 run a first-person 3D game at full resolution with a decent frame rate?

That was the question. And the answer turned out to be: better than I expected.

There have been many 3D games for the C64, even up to including a port of DOOM. However they all tend to have poor frame rate (under 10 fps) and often very blocky graphics. My goal was to see if the C64 could produce something smoother and clearer. And it turned out, it can.

Lots and lots of tricks were used to make it possible:

And oh so much more. Aggressive profiling and optimizing, pass after pass, taking advantage of every simplifying rule of our game format, using every 6502 programming trick, precalculating as much math as possible, aligning tables in memory... you name it, it's in there.

What Hacker News is saying

  • “I had wondered for a while if it would be possible to do this with a carefully crafted character map and a text mode, but I never found time to check.”
  • “esdf? what is this…”
  • “See also SquareDoom - an AI assisted port of Doom for the C64.”
  • “I'm trying to parse the title.”

Read the full discussion on Hacker News →

Source: https://github.com/needlestack/lest-c64

More stories