The video effectively demonstrates that while AI can generate legacy code, it lacks the hardware-specific intuition required for resource-constrained systems. It serves as a sobering reminder that human-in-the-loop refinement remains indispensable for turning AI-generated drafts into functional software.
深度探索
先修知识
- 暂无数据。
后续步骤
- 暂无数据。
深度探索
ChatGPT Tries to Build a Retro Game — Here's the C64 BASIC Disaster本站添加:
Welcome to I Beat BASIC. Things look a bit different today, so let's jump into it. I am screen recording this live.
This is for a YouTube video. The video today is going to be about having you, chat GPT, come up with a game in Commodore 64 BASIC. But the challenge is we only have 10 prompts to get it as good as we can. This is going to be the first prompt. So, I'm going to leave it up to you. The game could be as simple or as complex as you like, but I want the game to be as good as it can be, as engaging as it can be, as interesting as it can be, and as entertaining for my viewers as possible. You'll need to also let me know what the controls are so that when I start testing it, I can play it. So, give me your code. This is going to be prompt number one.
Let's see how this game starts, and then we've got nine more prompts to make it as good as we can. Give me what you got.
Okay, a solid starting point with a simple but actually playable arcade game gives us heaps of room to improve. So, we have A and D for left and right, and Q for quit.
There's our code.
I'm going to pop that into CBM Studio so that we can play it straight away.
Let's see how our game looks.
Ooh, we have a little intro screen. Gem drop, catch gems, avoid bombs. A left, D right, Q quit. Press any key to start.
Not a bad start.
>> [laughter] >> Okay. Ooh.
All right. So, looking at the code here, I think it is cuz you can't just put random minus TI. So, they want to see the random generator, the random number generator, which is fine with negative TI. And TI is the jiffy clock. So, that that's a good thing. But you can't just put random. You need to put something like I equals random or R equals random.
So, let's give that feedback.
Ooh, disappointing. There was a syntax error in line 60. I think it's to do with your random number generator.
Ooh, so this is going to be a waste of a prompt, but this was the second prompt.
Okay. So, that's two prompts down. Let's give this code a try. See if we get something playable this time.
Okay. Fingers crossed.
Press any key to start.
Oh my gosh, clunky.
I don't know why we have the main character like that, but that's okay.
All right. So, I Ooh, gem, and it tells me gem at the top. That's nice.
Oh, I Do I have to keep pressing the key? It's just not moving.
I do. So, you can't hold the key down.
You actually have to keep smashing the key.
Oh, that's helpful.
Why do I only have two lives? Did I start with two?
Or was one of them a bomb and I didn't even know?
Okay. Or is that a bomb? Is that a bomb?
I missed it. So, that was probably a bomb.
Okay, we're about to find out what happens when I don't catch a gem.
Do I just lose a life?
Missed one lives. Okay.
All right, I'm going to stop it there.
Yes, it is working, but my feedback is it is painfully slow. I have to keep pressing the keys over and over to move in the main game loop. I would prefer it that if I could just hold the key down, and it would keep moving in that direction.
If you could also, in this next prompt, try and do some variety of the gems that are falling, maybe some white diamonds or something that looks like a green emerald. That might be interesting. So, this is prompt number three.
All right. So, it's going to use the peek 197 to look at what's being pressed on the keyboard. So, I think that's probably going to be a better idea.
Yeah, the get A string is definitely a bit slower than using a peek 197.
So, we should get some falling variety as well. Yellow gold, white diamond, green diamond, red bomb.
Okay.
Here we go.
A is now moving in the wrong direction, so that's exciting.
>> [laughter] >> Movement is still very clunky.
Lost a life there. That makes sense.
Let's see if we get any variety of the falling objects, cuz so far it's just been two.
Oh, okay. I guess that's something else.
Yep, there it goes.
I do that I I do like the little touch at the top where it tells you what you've actually caught. So, the last thing I was gold. This thing I caught was diamond.
Isn't there literally like a diamond shape as one of the PETSCII characters?
Why aren't you using that?
Okay. So, for our next prompt, this is going to be prompt number four.
This is going to be prompt number four.
Why don't you use the diamond PETSCII character for the thing that's actually a diamond? I think that would be a good idea.
Uh the falling movement is still very slow, but is that how slow you want it for round one? Maybe it will improve.
Let's look at some of the other things you want to add. So, let's add a different sound effect for each item type that falls. Yes, I'd also like a better player graphic. And if you want to try a nicer title screen, add that, too. And hey, if you want to go for multiple falling objects at once, you can do that. That's a lot for the prompt, but show me what you can do.
Here we go again.
Ooh, we got some colors. Gold, diamond, emerald. Bombs take a life.
I look it's better than it was. I don't mind it.
How does it remember? Oh.
It's now painfully bad with the two falling objects, the slow blinking repeating.
And I've got absolutely no chance of getting from one object to the other.
But anyway, let's see if we get our sound at least. Here we go.
Huh. Boop. Oh, that was great.
I'm going to try and make it over to the diamond if I have any chance, and see Now, I keep pressing the wrong key cuz they're backwards.
And see if we get a different sound, or if it is just that same beep.
Ooh, well. Beep.
Yeah, I've got probably no chance of making it across to either of those.
Oh, I tell a lie. I actually made it.
Why did I die?
Okay. All right.
So, some definite feedback there for our next prompt. The A and D key are backwards. So, when I press D, I don't move right, I move left.
I caught a diamond, but then I died. So, I don't know why I died. Have you mixed up the diamond code with one of the bombs? It was a white diamond, and I died. That shouldn't have happened.
You do have two objects falling. Whereas they're falling at the same time, the player moves so slow, there's no way that I can catch the first one and then get to the next one. It's just impossible. You need a delay for the second item, a significant delay.
They're still falling really, really slow, and the player is moving incredibly slowly. I think you need to update the logic or look at how the player character is being redrawn, because it is just so slow, the game is almost unplayable.
Let's just focus on those fixes now for our next prompt. We really have to improve the game playability and the responsiveness and the movement overall.
It thinks it's found our gameplay problems and fixed them. So, A and D should be correct. The catcher's going to move faster. Only going to redraw when it moves. That's a good idea.
Second falling object should have a delay. Game loop faster overall. We shall see. And the diamond is a good item, not a bomb.
Copy that code.
I think we're about halfway now, so not too many prompts to go.
Let's see what we have now.
Okay. Well, the movement is better. I will give it that.
But the keys are still backwards.
A and D are still backwards.
But at least you can catch stuff now.
Gold.
Oh, we've lost the little pop-ups though that said what you caught. I like those.
Hey, we're good. That really needs to come back.
Ooh, am I going to be able to get to the No.
That was an improvement. We've lost the little screen pop-ups that say what you caught. I like those. So, when you caught gold or diamond or emerald, they were cute. They should come back in.
The keyboard direction is still not right. So, when I press the letter D, the character moves in the wrong direction. When I press the letter A, it moves in the wrong direction. So, you really need to look at that. As I said, speed was better.
What other things can we do to make the game much more exciting? Cuz it's still pretty simple. You've got a decent structure there, but could you maybe add some background elements like some little full stops in different colors that look like stars or something like that?
I think this is Yeah, this is prompt number six. So, what else can you give us to improve the overall gameplay?
Okay, so I don't like the spaces in that cuz that's going to be a pain when I paste it into CBM.
Nope. I have to get rid of all of those spaces now.
It's getting sloppy. We've got two line 720s.
That's no good. They're all Um they shouldn't cause an issue. Just change them back to 725.
So, I'm going to have to give that and the no spaces in the next feedback.
Look, the dots are pretty.
I wonder what will happen though when our objects fall. Are they going to Right, now I've got no keyboard movement at all.
>> [laughter] >> Really like the dots though. They're cute.
Phew. Right, so do not put any empty lines when you give me code to paste. That is a rule. Never do that.
The dots in the background were pretty.
I didn't mind them, but you need to make sure that when an object falls past them, that the dots just don't disappear. And now the keyboard was not responding at all, so I couldn't move the character at all. The character sprite is also a checkerboard pattern, a circle, and a random line. Can you do something that looks a bit more interesting, maybe like a spaceship or I don't know, something. It just doesn't look very good.
I think you could also maybe try and add an occasional flicker for some of the background stars if it doesn't impact the gameplay too much.
Oh, a simple little music loop. That would be amazing if you could do that cuz it's very difficult to do a music loop without just destroying the gameplay. So, go for it and that's going to be prompt seven. So, it says it's fixed the controls. The stars will be restored behind falling objects. There's going to be a little flicker. Player will look more like a ship.
A simple non-blocking music loop.
And keeping the pop-up messages. Oh, okay. I'm going to be very interested.
What's that? And that was prompt seven.
Seven. Okay, we've got three more.
I wonder what type of music it's going to give us.
And again, Treasure Storm. Ooh, love the name.
And we've lost the title screen.
We've actually lost everything.
Um Oh, okay. Maybe is that the music routine loading? I don't know.
Oh, cute music. Oh.
Ah.
We have issues now that the player cuz it moves so jerkily, you don't always Yeah, I couldn't have really caught that one.
Oh, and I screen wrap as well, which is weird.
Okay.
The music did play. Could the notes maybe move a bit faster? It's, you know, it wasn't too bad.
Uh the character the player character now moves really weirdly. It moves jerkily and lots of three. So, sometimes you're actually in a position where you can't actually catch a falling character. And when you get to the edge of the screen, it wraps around the screen and it shouldn't do that. So, you need to restore the player movement a bit better.
Instead of the pi symbol for the middle symbol of the player character, is there like maybe a a triangle pointing upwards or something? That might be a bit interesting. I don't recall seeing any flicker in the stars as well as we played. So, let's see if you can fix those things.
This is our prompt eight. Should do edge checks better. The player should be moving better. Ship redraw stable. Star flicker. Music updates. Ooh, rare bonus item. Combat scoring. Bombs that fall faster than treasure.
Two more prompts to go.
Yeah, that loading is interesting. I'll see if I can maybe fix that.
Cuz now we just sit here for quite a while.
Here come our stars.
What is the code doing at the start?
Yeah, doing a bit of poking. Okay.
Oh, we're back to our super slow movement again.
And redrawing the main player character when it doesn't need to be.
Has anybody spotted a flickering star yet?
Maybe that's what's eating into the the game speed.
Okay, second last prompt. Everything's moving really, really slowly. Take out the code for sparkling stars cuz that just doesn't do anything.
You are redrawing the main player character even when it doesn't move.
Still, can you replace the middle character of the main player with a triangle Petski character? That would be really, really good. And when the game loads, it shows the score line at the top and then the screen goes black for quite a long time. Then the stars draw, but then the score line doesn't come back until the you get your first lot of points. So, the score needs to be at the top right at the start and see if you can improve the speed of the game loading and starting. Apparently, our startup will be faster. The score is going to print.
We're not going to have the constant flicker of the ship, hopefully.
Object two has a delay.
And the middle of the ship should look better.
Second last prompt. Here we go.
Oh, that that's much better.
And then we have our notes moving much faster.
And they slow down a bit when we're under pressure moving.
I'm not sure if the best four notes that could have been chosen.
Okay, we've got our flashes back at the top. Yep. Got the gold. Got the gold.
Am I going to be able to make it to the diamond?
Probably not.
Okay, we have one more prompt. What am I going to do?
This is the last prompt. The four notes that you use in the melody are quite annoying. You need a much wider variety of notes to make it a bit more interesting.
And is there anything else that you want to add? This is your last chance to make the game as good as you can. So, maybe take some time to think about this. And let's finish this off. Give me our final game code. Our final prompt. Varied music loop. A rare bonus item. A fast ship. A score line's going to be there.
Multiple falling objects.
Stars restored properly behind. No blank lines. Okay.
Here is our last code. This is as good as it's going to get in 10 prompts.
Okay.
Treasure Storm. Gold, diamond, emerald, bonus. And bombs are the bonuses are light blue. A left, D right. Run stop to quit.
Stars poking very nicely.
Let's see how long I can stay alive.
>> [music] >> Oh, is that my bonus item? Oh, but we're not going to make it. Oh, come on. Come on. Come on. Come on. Oh, yeah.
Ignore the bomb.
I I have been more specific about the music cuz there's notes that are close together that that make it sound a bit sad.
I should have told it to maybe just use the major scale, but that's okay.
I think if you type this from a magazine, you wouldn't be totally disappointed.
It's not awful.
Uh, don't think I'm going to get to that green one.
The lives counter is working.
I only lost one life so far. I'm on level one. Oh, level two. Okay.
We're going to be falling a bit faster.
Dodging the bombs.
Not bad. Not bad.
Uh, give me that gold. Ooh, am I going to make that? I'm not going to make the other gold, am I? Yeah, no chance.
That's okay.
One life left. Hey, another bonus.
Well, that's been my game, everyone.
Thank you so much for watching. I just thought I'd try [music] a different experiment, something just a little different, out of the ordinary. Wanted to see what ChatGPT could come up with.
Please subscribe if you haven't already.
Feel free to leave me as many comments as you like about this game.
Maybe I could try an experiment like this again. Maybe you could give me some prompts or some type of games that you might like it to create. Maybe we could try an adventure game next time. I don't know.
Thanks so much for watching. Please come back soon. There's definitely always going to be some more 8-bit basic, and I think I'm not going to make it for this last object.
Uh, there we go. Thanks for watching.
相关推荐
VALORANT's Latest 'Exclusive' Tier Bundle is Rough...
KangaValorant
17K views•2026-05-28
Flight Attendant Mocks Poor Looking Black Woman — Mid Air Announcement Exposes Her Real Power
SkyboundStories-b4r
184 views•2026-05-28
I FIXED My Friend’s Blown Turbo RX-8… Then Sold It
Cameron-RX8
134 views•2026-05-28
NewsWatch 12 at 5: Top Stories
NewsWatch12
1K views•2026-05-28
Simon Jordan & Danny Murphy deliver PREDICTIONS for Arsenal's Champions League FINAL with PSG
talkSPORTArsenal
6K views•2026-05-28
Botting is OUT OF CONTROL in Classic WoW (Again)...
SolheimGaming
108 views•2026-05-28
The "AI Job Apocalypse" is CANCELLED!
WesRoth
9K views•2026-05-28
STREET FIGHTER 6 - INGRID Story Walkthrough @ 4K 60ᶠᵖˢ ✔
RajmanGamingHD
12K views•2026-05-28











