I asked ChatGPT to generate a raycasting engine for Pico-8 and this is what it gave me. Though I added movement and fixed the math functions as it was using the lua standard math library.
Fight your way through a small dungeon as
waves of zombies spawn and attempt to attack you.
Each wave will spawn shortly after the hourglass
ticks over. The only way to end the game is to die.
This is just a small game I made for my nephew to play.
Made in the span of about five days(3 hours each).
The code could be refactored to be much cleaner.