Can AI code Flappy Bird? Watch ChatGPT try

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 มี.ค. 2023
  • I asked ChatGPT to provide me with instructions on how to make Flappy Bird and it also wrote all of the code. I didn’t write a single line of code myself, all code was given to me by ChatGPT. Will this usher in an age of video game development in which hobbyist game developers can make a video game without needing to know how to program?
    This was done using Chat GPT-4. I asked Chat GPT to make the game in C# using Unity. The results of this experiment are impressive, and there are other examples on the Internet of Chat GPT doing even more impressive things. For game development a lot of the impressive feats I've seen are based on ideas we already know. For example, Flappy Bird has simple game rules, and many tutorials on the Internet exist for it already. This means the Flappy Bird game is particularly well suited for Chat GPT to understand.
    So what's next? Future tools are on their way (or already here) - most notably Microsoft Copilot. At a minimum an AI Copilot written explicitly for programming won’t make simple or obvious programming errors. Beyond that, having full knowledge of the game's codebase to help the AI understand how to extend an existing project will be a game-changer. Iteration is a crucial step in game development so true co-development with an AI won’t be possible until this integration happens.
    -----
    FAQ
    How long did it take?
    3 hours from start to finish, including art. The actual code was about 1.5 hours. You can see timestamps in the bottom right corner of my screen in the video if you zoom in.
    Can I get the source?
    Full project source files are available here: www.wyattcheng.com/games/Flap...
    Can I see the conversation?
    Imgur album with the full conversation I had with ChatGPT here: imgur.com/Y16crTo
    Can ChatGPT make a game that didn't already have tons of references on the internet?
    As others have pointed out, the standard implementation is to actually keep the bird stationary and move the pipes to the left. I chose to move the bird and camera right because that was ChatGPT's initial proposal so I wanted to see how it would go AND it shows that ChatGPT is being generative with code that does NOT already exist.
    What did you use for the art?
    Midjourney
    -----
    Discuss this video and chat about game development on my discord server / discord
    I stream gam jams on twitch / candlesan
    Twitter: / candlesan
    In my day job I serve as Game Director at Blizzard Entertainment. This channel is an independent endeavor and not related to my employer in any way. The opinions expressed are my own and do not necessarily reflect those of my employer.

ความคิดเห็น • 3.7K

  • @liuruiyang7168
    @liuruiyang7168 ปีที่แล้ว +8

    Watching this makes me imagine rewatch this video 10 years later. Just imagine how primitive we will feel we are right now.

  • @miketacos9034
    @miketacos9034 ปีที่แล้ว +12

    Wow… an AI and a human fixing each other’s mistakes… I didn’t expect wholesome content!

  • @bigquazz3955

    This gives me hope for the gaming industry. Maybe future AI advances will finally allow developers to finish games before selling them.

  • @Psycandy
    @Psycandy  +539

    this is insane. it's the natural language interaction that's most impressive, plus the tracking of the project. just mindblowing.

  • @NathanQuintanal
    @NathanQuintanal ปีที่แล้ว +7

    This is seriously amazing. But yes, if you have never seen code before, you would have no clue how to ask the questions you did in order to get ChatGPT to fix the errors, let alone where to insert those fixes.

  • @zRedPlays
    @zRedPlays ปีที่แล้ว +2

    It's crazy how it manages to correct itself after realizing the mistake, almost like an actual human

  • @wtfduud
    @wtfduud ปีที่แล้ว +1

    ChatGPT coding seems like the first step towards a higher-level coding language, where the coding program interprets the intentions of the writer, rather than needing specific commands.

  • @lk2official
    @lk2official ปีที่แล้ว +98

    This video was the best I've seen in a long time! I'm not that interested in game making tbh but you made it interesting for someone whos never written a line of code in their life. Less is more they say and this video is a great example of just that. No distracting editing, superior audio quality, and your love for this kind of stuff really shine through! I hope to see more great videos from you :) subscribed!

  • @Getfuckeddude
    @Getfuckeddude ปีที่แล้ว +1

    The fact it can write code is already mind blowing to me but that fact it can write it to YOUR specifications is friggin sweet!

  • @leosc24
    @leosc24 ปีที่แล้ว +1

    Your video was a random one that popped up in my feed, and I gotta say, only a few seconds in I became a fan. Your ideas, simple clean cuts, a well written script and beautiful sound quality are phenomenal! New sub here and I feel like you're gonna blow up once others become aware of your channel!

  • @samuraixfx

    This is like digital carpentry. Utilising the tools in front of you. Brilliant video.

  • @C7y323
    @C7y323 ปีที่แล้ว

    How is your channel not more popular this video was so insightful! Im a new subscriber!

  • @nonwibb
    @nonwibb ปีที่แล้ว +753

    I am a professional programmer but for some of my personal projects where I have to write basic html/css/js (i hate websites), I basically do this with chatgpt. Usually as the project grows it becomes less useful as there is more technical stuff and context, but it still helps hugely with certain implementation questions I have or providing code snippets. It basically starts as a programmer and becomes a concise google.

  • @vv2955
    @vv2955 ปีที่แล้ว +2

    This is a super cool concept! I hope you can make a series with AI writing code for simple games.

  • @sepy1532
    @sepy1532  +39

    It'd be fascinating to see how far it can go on a larger project. Really neat stuff.

  • @Shellll
    @Shellll ปีที่แล้ว +432

    Such a quality video with such few viewers. Thanks for taking the time to share your experience

  • @milesgti
    @milesgti ปีที่แล้ว +1

    This is incredible. Can’t imagine how advanced this will get in the next 10 years.

  • @adultandyoungadultbooks5313
    @adultandyoungadultbooks5313 ปีที่แล้ว +5

    I have no coding knowledge, and like you said at the end, a person like me wouldn't be able to fix a lot of those errors and would either take too long or eventually give up, but it's a fantastic start!

  • @ThePigKnight
    @ThePigKnight ปีที่แล้ว +74

    ChatGPT is very humble and willing to admit mistakes. I wish all the people I work with were like this robot. 😂

  • @Layput
    @Layput ปีที่แล้ว +1

    Now, I can see why people have raised concerns over AI. It's quite scary actually. So powerful.