So, you think GPT-4 can't make a complex game... think again!
Here's how I used GPT-4, @Replit, MidJourney, Claude, assembling a team of AI assistants, to create a 3D space runner from scratch with ZERO knowledge of Javascript or 3D game programming
Follow along for a saga! π§΅
Here's how I used GPT-4, @Replit, MidJourney, Claude, assembling a team of AI assistants, to create a 3D space runner from scratch with ZERO knowledge of Javascript or 3D game programming
Follow along for a saga! π§΅
After Snake, seeing @skirano's epic pong recreation, and @javilopen demoing Doom, I wanted to see if I could get GPT-4 to make a fully fledged 3D game. A childhood favorite game of mine was an MS-DOS game called SkyRoads, it was long forgotten. But... did GPT-4 know about it?
Once I got the code, I pasted it into @Replit the exact way GPT told me too, and it worked! Except... we were FAR from the final product. The green cube, our soon-to-be spaceship, had no ability to turn left or right no way to dodge those pesky obstacles. Well, GPT fixed thatπ
Then came the elusive bug. The spaceship would launch into the abyss if I hit jump+directional keys, crashing the game. GPT-4 and I tried everything for HOURS. I turned to @AnthropicAI's Claude on @poe_platform. In under 60 seconds, Claude solved it.
There were plenty of other bugs. The ship would fall through the track, the track would just stop at a certain length, but then the dynamic between me and GPT/Claude became clear: I was the play tester trying to break the game. GPT and Claude do their best to fix it.
Now that the bug was solved, back to the fun part! I needed backgrounds, textures, and a spaceship model for my game. I found my spaceship model on @Sketchfab and asked GPT to give me the code to replace that green cube with my 3D model file.
Then I went to MidJourney for the background and textures, and upscaled them using @pixelmator's super resolution, and its magic brush to make the texture more seamless.
Finally, went to @epidemicsound to add some music to the game, and then asked GPT-4 to give me the code to add a music player, explosion and game over sounds when you crash. Some classic synth when you're flying your ship, of course!
Other notes: it got to a point where the code was too long for GPT to take in as a question, so I had to use the API playground.
A pro tip from @skirano, but GPT actually got better when I told it it was "a world-class BabylonS developer."
A pro tip from @skirano, but GPT actually got better when I told it it was "a world-class BabylonS developer."
Play it here, share your score, and if you have any questions, I'd love to help!
@asrsubs/SkyRoads-GPT-4?v=1" target="_blank" rel="noopener" onclick="event.stopPropagation()">replit.com
@asrsubs/SkyRoads-GPT-4?v=1" target="_blank" rel="noopener" onclick="event.stopPropagation()">replit.com
Loading suggestions...