Gezinmeyi atla
👀 I used OpenAI's Code Interpreter to make Flappy Bird 🐦in 7 minutes:
0:00 / 0:25

👀 I used OpenAI's Code Interpreter to make Flappy Bird 🐦in 7 minutes:

Alex Ker 🔭

@thealexker12 B takipçi

X profili
1.739 beğeniİndirOrijinal gönderi

739.874 görüntüleme

👀 I used OpenAI's Code Interpreter to make Flappy Bird 🐦in 7 minutes: Code Interpreter/GPT-4 for code generation. Pre-existing or AI-generated assets for graphics. --- Here's how to make the game in only 6 steps: (1): Enter the following prompt: "write p5.js code for Flappy Bird where you control a yellow bird continuously flying between a series of green pipes. The bird flaps every time you left click the mouse. If the bird falls to the ground or hits a pipe, you lose. This game goes on infinitely until you lose and you get points the further you go". (2): Use generative AI or existing game assets and spirits. I searched "flappy bird assets" on Google and used the first link, a GitHub repo with pngs from the original Flappy Bird. (3): Use this prompt to link assets to the code: "Please generate the entire file again based on the fact I'm using a unique background, spirits for the bird, and pipes. Here is the list of assets I'm using: [list of file names]." Code Interpreter should modify the code accordingly to include the list of file names. (4) Make an account OpenProcessing -> create a sketch -> paste in the code generated by Code Interpreter -> upload in-game assets from step (2). (5) (Optional) Ask ChatGPT to make changes to improve the in-game experience e.g., adding a high score, restarting the game when the bird dies, etc. Copy the new code into your OpenProcessing sketch and reload the game. (6) If something doesn't work, ask GPT4 to fix it. Copy and paste the error message and ask it to regenerate the code. --- Bonus Tips: - Iteratively test code. Each time you make a change using Code Interpreter, test the updated code by playing the game so you catch new bugs early. - Learn programming by asking questions: "Act as a senior programmer very good at explaining concepts to a beginner. Tell me how gravity works in this game and how you used code to make this happen."Code Interpreter/GPT4 for code generation. Download Pre-existing assets or generate new images for graphics. Excited to see what you make!

11 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Alex Ker 🔭 profil fotoğrafı

    @thealexker

    Observations: - I created platformers and similar games back when I took intro to computer science. Teachers may have to reimagine final projects now. - This won't replace game studios, but will make game development so much easier, at least in the prototyping phase and getting a MVP:) h/t: @icreatelife for the inspiration of creating games with code interpreter.

    40 beğeni

  • Alex Ker 🔭 profil fotoğrafı

    @thealexker

    I’ll be sharing useful examples in applied AI everyday. If that sounds interesting, consider following me @thealexker and let’s learn together. No fluff only high signal tweets.

    16 beğeni

  • Hadi Partovi profil fotoğrafı

    @hadip

    Or, you could code your own Flappy Bird game using drag & drop coding using @codeorg at Over 50 million children have learned beginner coding this way. 🤓

    30 beğeni

  • Alex Ker 🔭 profil fotoğrafı

    @thealexker

    @codeorg Hadi! Thank you for the comment. I've been a big fan of since learning how to code back in middle school. Scratch is awesome thanks for sharing the tutorial:)

    7 beğeni

  • Claire profil fotoğrafı

    @USClaireForce

    So what you're saying is now the app store is going to stuffed to the brim with 8 billion Flappy Bird clone

    20 beğeni

  • FlokiOdinson profil fotoğrafı

    @OdinFlokison

    Done took about 30 minutes pretty cool thanks

    8 beğeni

  • Alex Ker 🔭 profil fotoğrafı

    @thealexker

    @DKHandsomeJack Looks clean Jack! Nice work a lot more proportional than mine:)

    3 beğeni

  • José Vásconez profil fotoğrafı

    @Xenophan_

    @NickADobos I made a reskinned flappy bird game weeks ago with gpt4. (May not work on mobile, adding new functionality)

    6 beğeni

  • Alex Ker 🔭 profil fotoğrafı

    @thealexker

    @NickADobos Awesome! Did you have to fix code or did it hallucinate anything--curious to see this compared to Code Interpreter.

    2 beğeni

  • Aaron Heine profil fotoğrafı

    @aaronheine

    But could you have made that if you didn’t use the term Flappy Bird in your prompt

    5 beğeni

  • Alex Ker 🔭 profil fotoğrafı

    @thealexker

    ooo that would be an interesting experiment. The code is pretty generic imo (could be used for a lot of platform games), so my guess is yes.