Загрузка видео...

Не удалось загрузить видео

На главную

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! 🧵

1,527,371 просмотров • 3 лет назад •via X (Twitter)

Комментарии: 16

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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?

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

Turns out it did! It seemed to be describing the Wikipedia page of the game but that was all... so it was a true test—could we bring this game back to life based on just our understanding of it and a description?

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

I don't know how to write a line of 3D game programming code, so I asked GPT-4 to pick out how it would make the game, it suggested using BabylonJS, and HTML and CSS. Then I described exactly what we would borrow from SkyRoads and how this version would be different—prompt:

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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🚀

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

Then, the camera angle was off, we were seeing this cube from the front, but we needed to be behind the spaceship! So I described how the camera needed to look, and GPT fixed that. Turns out it was a simple one line change.

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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.

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

This also unlocked a new way of working for me—where GPT-4 could be verbose and far more accurate with longer code generations (Claude started adding random lines that we're in the originally pasted text), Claude could help with small fixes. We had a team.

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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.

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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.

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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.

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

And then asked GPT to make bring all my files in. Then 1 made the game more challenging. Obstacles needed to be of varying width, the track needed to split off to the left and right, I wanted to save the player's best score so they had something to beat.

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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!

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

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."

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

And there you have it! In the span of 3 days, with zero 3D game programming knowledge, I was able to recreate an adaptation of one of my childhood favorite games using a combo of Al and existing tools!

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

Play it here, share your score, and if you have any questions, I'd love to help!

Фото профиля Ammaar Reshi
Ammaar Reshi3 лет назад

Bigger clip for folks on mobile! :)

Похожие видео

This workflow combining Loom’s AI features + a custom ChatGPT GPT is saving me hours. Instead of creating onboarding Docs for new team members, I film a Loom → generate SOP → train a GPT to answer questions Game changer for businesses to delegate faster. Here's how to do it: First, I record a video of whatever task I want to delegate to the new team member with Loom. The more in-depth, the better, but I just used a 7-minute video. Then, I use Loom's new AI 'Write a document' feature. Upgrading to Loom AI from the standard Loom plan cost me $2. Loom AI can generate an entire SOP, PR description, step-by-step guide, QA, and more from a simple Loom video in <5 seconds. In the past, I’ve spent 2 hours+ hand-writing each one of these docs to onboard new team members, so Loom AI is already a massive timesaver. But it gets even better! Next, we can take that data from the SOP document, and we use it as 'Knowledge' to train a Custom GPT that can answer the new team members' questions. The more SOP docs/Knowledge you feed the GPT, the better. But one is fine if that's all you have because the GPT will pull any unknown answers from the web or its training data. Here are the prompt Instructions you want to put into the Custom GPT (copy and paste this): You are an expert CEO, specialized in onboarding and training new team members. Using the Knowledge provided, you will help new team members with any questions or stipulations they may have about their new role. Stick as true to the data provided as possible, but if= they ask any questions that the Knowledge base does not have a specific answer for, you are permitted to use your pre-trained data and/or web browsing capabilities. That's it! It can't replace you entirely, but it'll save you 90% of the time you would've wasted on writing an SOP doc and answering questions. Simple AI workflows here and there really add up. There's also a workflow to help with the job screening process, but I'll save that for another day :^)

Rowan Cheung

129,424 просмотров • 2 лет назад