Imagine just telling a computer what type of game you want to make and it makes it for you. That's the reality of what we're facing with the GPT revolution that's upon us. Thanks to the transformative power of LLM like ChatGPT. In this video, I walk you through how I try to re-create a game that I have on my phone so I can play it on my computer. And it's pretty cool. Check it out! This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit helloai.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Okay, I've got to show you something that I love about ChatGPT and all these LLMs, but I love the way that 4.0 handles a lot of this stuff, and it works very well. So I've got this game that I play for my five-month-old on the phone, and it just calms and soothes him. You can see it sort of is just this physics interaction here, the cross in the middle and the balls fall down from the top, and then it just kind of spins and rolls and everything else there. I thought to myself, I wonder... I wonder if Chad GPT could recreate that.
SPEAKER_00So what I'm going to do is give it some instructions and say, hey there, I'm uploading a video of an application that I use on my phone to calm my son when he's an infant. And it basically shows a big, thick kind of red cross in the middle that is spinning and And it spins basically in place. And there are balls that are coming down from the top, alternating red and black.
SPEAKER_00And some of them will hit the cross and then they interact with the cross and they fall down. Period. Let me give you a video of what this is and you can tell me what you see. So now I'm going to go ahead and upload the video here. All right. All right, so let's just see what it does. So what it's going to do is actually analyze the video on the back end here as well. Usually what I find is it'll take a couple frames of it and say, oh, yeah, I see what's happening here.
SPEAKER_00But I think the next version of this they're going to release will have, like, that full video input. They currently do that over at Google, and certainly it says... main visual large thick red cross the middle of the screen the red cross is spreading in place and sure enough as you said bowls the balls are coming down from the top of the screen i guess i said bowls up top there so uh some of the interaction of bowls uh i'll say well they're balls did i say bowls up there and
SPEAKER_00coming down yes i did i meant just say balls It'll say, Oh, I forgive you. Okay. There it goes. So it's just, let me make sure that it's clear there. Okay. And then, uh, I'm going to say, Hey, do you think there's a way to reproduce this in Python? That's going to say, yeah, let's go for it. So it wants me to install Pygame.
SPEAKER_00I think I've already got that installed here. It's spitting out the code here. So here it's writing the entire code, drawing all the things. It's got it commented out which one's coming first. Here's the creating the cross. Here's the ball list. And then it explains kind of what's happening there. So let me just copy this here. I'm going to paste that into just one of my editors here and save it somewhere. Onto the test here, and I'm going to call it cross.py.
SPEAKER_00Okay, so now my terminal here. Okay, so I got this all set up. So this is in the folder here, and I can say python cross.py. Oh, I'm going to shrink this up here because it's big. Well, the cross isn't working. Hang on. All right. Let's go back here. Let's give it another shot. Okay.
SPEAKER_00Okay, looks pretty good, although it's a little too big. Can you sort of shrink it up? I don't need that big of a space. But also, the cross didn't really materialize. It was just kind of like an upside-down L, period. Can you make sure there's a cross on there? And also, can you make sure that the balls interact with the cross? So if they happen to hit the cross, they do their physics thing. Again, I don't know what that means for you, but give it a shot. And notice how I'm just speaking to it like I would an intern who knows what they're doing.
SPEAKER_00I'm a pretty good coder, but the graphic artist thing and doing the gaming thing, kind of new to me. I used to, oh, look, it's what I say right here. Okay, so let's go through here. Let's grab our code. Is it done? Still writing. Getting the rectangles, drawing self, rotating self, classing the cross there. New balls coming through. Move the balls and check collisions, all right? Let's see what it conjures up here. Copy over to our editor.
SPEAKER_00Paste, save, over to the terminal. And let's just run that again. The balls are, are they coming down? I can't tell. And the cross isn't spinning. I promise this worked better before. Whoa, lots of balls there. Let me do it again and just say, yeah, this is interesting.
SPEAKER_00There's an interesting test case here. And that's going to take a screenshot. Say, pick a cross out of it here. Say, well, Well, the balls seem to be accumulating at the top there. I'm not sure what's going on. Let me send you a screenshot.
SPEAKER_00Cross isn't rotating. All right, let's give it another shot here. Might be a sweet initialization step. Okay, so it's going through, recreating things, making sure we've got it here. Let's see what transpires. All right, got the code now, copy, and where am I?
SPEAKER_00Paste, save, terminal, go. Yes. Oh, the balls are going and they're interacting with the cross. Check that out. But the cross is not spinning. Let's see if we can have them change that there. That's looking much better.
SPEAKER_00Now, the cross is still not spinning in a clockwise direction. Otherwise, the physics seem to work okay. Now, I'm wondering if you can get the cross to start spinning slowly and the balls can hit it. And again, there's kind of that physics that if it's spinning in a clockwise rotation and the ball happens to hit it, it should physically launch the ball into a different direction, right? Can you do something with that?
SPEAKER_00Let's add the proper rotation. It's coming through. It's speedy. It's crawling through here. Okay, cool. Here we go. Copy this. over there save time for some python action oh now the balls are everywhere oh but
SPEAKER_00look it's working that's fantastic i love it i love it and then you know you can go on like i say you know i like to reward it too yeah sometimes if you say hey that's fantastic here's a thousand dollars And I just love what you're doing here. Can you make it so that there are alternate shapes, so that there are balls, some of the balls are bigger, some are smaller,
SPEAKER_00and that there are squares, too, maybe? Let's do that. Oh, look, I gave it $1,000. It's really working quickly now. Coming through.
SPEAKER_00Okay, cool, cool, cool. Copy this over here, paste, save, Python. Oh, try again. Ah, see now it comes across an error. So as we do, you just kind of copy the error here. We're gonna paste that back into our code and it's gonna know kind of what happened here. Oh, it looks like I messed defining the ball speed after the restructuring code.
SPEAKER_00Let's fix this by ensuring ball speed is properly defined. Popping it out here. All right, cool. Now it's got the ball speed in there. Let's go ahead and copy the code.
SPEAKER_00Going over here. Selecting, pasting, saving, Python, ready, launch. Oh, check it out. It's not as slick, and I'm sure I can get it to work even better. But look at that. Look at that. Ten minutes flat. straight up game. Now I can hold my kid on my lap. He can watch this on the computer and then I can have my phone back.
Exploring VEO3 Through Tarkovsky’s Lens You can get a 3-month special on the Gemini ULTRA package and you can create VEO3 videos in their new Flow labs tool. VEO3 invites a new kind of dreaming - one shaped by slowness,...
A lot of video AI tools give you a manual set of instructions to build your own world from scratch. Pika has taken a very different tact and they'll give you that, but they pre-trained a few models that are really quite...