I Made a Game with ChatGPT...

Sdílet
Vložit
  • čas přidán 12. 12. 2022
  • Play the Game - benbonk.itch.io/ai-did-not-ma...
    Join the Discord - / discord
    My twitter - / benbonkdev
    In this video I attempted to create a game from scratch, using only the code generated by OpenAI's newest creation, ChatGPT. This AI chatbot absolutely blew me away with what it could do, and I truly think it will change game dev in the future. If you like game development challenges like this, consider subscribing.
    About me:
    Hey, I'm BenBonk, an indie game developer who uses the Unity Engine. I've made and released many small games before on my itch page, though now I'm attempting to make my first commercial game, Slimekeep. Slimekeep is a roguelike, using a very limited color palette, similar to Enter the Gungeon, though with a few interesting mechanics, such as keeping slimes alive longer will earn you more money, and the ability to capture slimes to power up your slime pet. If you enjoyed anything you saw, please consider subscribing, as it really helps me out.
    Music by Pieper Beats
    subscribe gamers ( ͡ᵔ ͜ʖ ͡ᵔ)
  • Věda a technologie

Komentáře • 1,3K

  • @Gizmote
    @Gizmote Před rokem +2462

    I've messed around with ChatGPT a lot over the past week, cool to see how creative everyone is getting with it!

    • @BenBonk
      @BenBonk  Před rokem +178

      Yup, it’s crazy. I’m sure AI will definitely revolutionize music in the future too.

    • @Splash029
      @Splash029 Před rokem +78

      @@BenBonkoh hell naw D:
      I don’t wanna get unemployed lol

    • @icecremmester
      @icecremmester Před rokem +5

      YOOOOOO ITS GIZMOTE

    • @Splash029
      @Splash029 Před rokem +3

      @@NStripleseven it was a little inside joke, because I’m one of the 3 Slimekeep composers..

    • @vento9943
      @vento9943 Před rokem +3

      @@BenBonk Tbh it wont

  • @domolutz
    @domolutz Před rokem +986

    I was rly impressed by ChatGPT. It helped me finish a Blender Addon I was working on for ages. I could just enter the errors Blender was throwing into the ChatBot and it solved the issue and even explained how it did it. It feels like I'm Tony Stark and I have a personal assistant I can throw anything at. Really fun to work with

    • @sawyairhtet9984
      @sawyairhtet9984 Před rokem +47

      Speaking of Tony Stark, ChatGPT can also write code for Jarvis (Tony Stark's AI assistant).

    • @cashearnerz
      @cashearnerz Před rokem +7

      @@sawyairhtet9984 whaaaaaaaaaat?]

    • @hrlrl9309
      @hrlrl9309 Před rokem +21

      I know what you mean. I tell people it's like rocket boosters for programming.

    • @yeet3385
      @yeet3385 Před rokem +2

      @Down The Rabbit Hole With Delana Taylor Haha that's so cute!

    • @ebogar42
      @ebogar42 Před rokem

      Throw is God real at it and you will see how overrated this shit is. This whole video was about how is sucks, but yet you see it as giving accurate info all the time.

  • @itr-dev
    @itr-dev Před rokem +1049

    ChatGPT is a lot of fun, but it often writes bad or out-dated code. I like a lot more to have it explain stuff or summarize a long text.

    • @BenBonk
      @BenBonk  Před rokem +147

      Yeah, fair point.

    • @JohnSmith-ox3gy
      @JohnSmith-ox3gy Před rokem +174

      It likely was trained with a backlog of code from the past decades. You'd have to make a training set for a specific language and further train this to be a more effective code generator.

    • @romoney
      @romoney Před rokem +24

      it might be useful to use an engine version made in 2021 or earlier

    • @birj8414
      @birj8414 Před rokem +54

      @@BenBonk FYI Chat-GPT's knowledge and information is only updated to 2021. Anything that happens in 2022 is not available to its database.

    • @antimewpropaganda9503
      @antimewpropaganda9503 Před rokem

      True you have to be really patient with it

  • @Teddo_888
    @Teddo_888 Před rokem +1608

    OpenAI really is doing some amazing stuff.

    • @BenBonk
      @BenBonk  Před rokem +78

      Agreed

    • @DryIsCool
      @DryIsCool Před rokem +14

      @@BenBonk I hear AI will be able to make cartoons

    • @disunitednation2782
      @disunitednation2782 Před rokem

      yea like taking over humanity . why then do we need humans ? when machine can replace us !

    • @Llamu
      @Llamu Před rokem +9

      @@DryIsCool probably already can

    • @donner7708
      @donner7708 Před rokem +5

      Have you played around with their Whisper modules? Really cool speech to text software. Love this team and what they are doing.

  • @Honzus
    @Honzus Před rokem +272

    It's amazing how well this actually works. It definitely exceeded my expectations by a lot!

    • @BenBonk
      @BenBonk  Před rokem +14

      Same here, it’s crazy.

    • @yourmum69_420
      @yourmum69_420 Před rokem +1

      @@BenBonk I think the game would be better without the corner blocks. It's too easy to camp there

    • @ebogar42
      @ebogar42 Před rokem +1

      lol No, it doesn't work amazing. Y'all must be simple.

  • @srisairayapudi6074
    @srisairayapudi6074 Před rokem +125

    2 things i'd like to say:
    -> chat gpt doesnt freeze like that, it stops after a certain limit and you can type "continue" and it will
    -> its information is limited to 2021, so the tips it had given you on how to make the text less blurry was for an older version of unity, which at the time was the latest one
    CHATGPT IS AWESOME

    • @BitwiseMobile
      @BitwiseMobile Před rokem +6

      You can also tell it that it's using old stuff. I did that and it came back with an example that was more up to date. It's been trained with old data first, so that's going to be what is selected first. The more you tell it that it's wrong, the more it will learn and get better.

    • @ZaChemas
      @ZaChemas Před rokem +3

      you can literally just tell it to "use more actual code" and then tell it to optimize it and boom, i literally just finished a school project of a game that basically ends up deleting itself XD

    • @alansmithee419
      @alansmithee419 Před rokem

      @@BitwiseMobile It can only learn within the context of a single conversation with a single user. The instant you open a new conversation it will forget everything you told it.
      I think A future version of GPT needs to be able to continually learn from new experiences.

  • @kylar5677
    @kylar5677 Před rokem +310

    I had the ai write me a 20 min presentation about 'The integration of electrical and mechanical systems in electromechatronics' for my English class. Ended up getting the highest score and the teacher was blown away.

    • @RG-si1qz
      @RG-si1qz Před rokem

      Blown away by what a fraud you are. Lol you think your teacher doesn’t know…

    • @dramorian4486
      @dramorian4486 Před rokem +17

      Mind sharing the result?

    • @browniesr4theweak
      @browniesr4theweak Před rokem +14

      I wouldn't mind seeing that presentation

    • @sunflower7874
      @sunflower7874 Před rokem +24

      I have a feeling this is how’s it’s gonna be from now on lmao

    • @Oksa_L
      @Oksa_L Před rokem +30

      Congratulations, you played yourself.

  • @buzzy4227
    @buzzy4227 Před rokem +288

    Now when I am being hunted by the AI overlords I know that to escape all I need to do is ask them to rewrite their code with 2D elements. Keep up the important work.

    • @MrBrew4321
      @MrBrew4321 Před rokem +14

      Filled away with the throw a paradox at them tact.

    • @FunkSwaggMusiK
      @FunkSwaggMusiK Před rokem +4

      That is a real possibility. People better be careful with AI

    • @tack3545
      @tack3545 Před rokem

      they can still get your feet

    • @whynotcode
      @whynotcode Před rokem

      I recently uploaded a video of chatgpt coding Tetris, it’s pretty convenient to grab some quick boilerplate and have it summarize how the game works. Removes lots of thinking 😂

    • @mandyaustinbadart5814
      @mandyaustinbadart5814 Před 11 měsíci

      chat gpt is far too lazy to chase you any further than 20 metres - don't even mention it :)

  • @Wilzzub0b
    @Wilzzub0b Před rokem +52

    ChatGPT is super powerful, but you also need to know Unity beforehand and how everything works. It's more of an tool than a bot that makes everything for you. If you have no idea what the scripts actually do, then it's very difficult to customize them to your liking. For a simple game like this it works super well, but for bigger projects I see it as a mentor who can help when you get stuck.

    • @KRYMauL
      @KRYMauL Před rokem +2

      I think between this and a node based system it would massively improve productivity. Almost like an engineer with CAD.

    • @BenBonk
      @BenBonk  Před rokem +13

      Yeah, I mean you definitely need experience with unity for this to be viable, buts it’s still a crazy good assistant and learning tool.

    • @KRYMauL
      @KRYMauL Před rokem

      @@BenBonk Implementing this into an IDE with a manager system would be really interesting.
      EDIT: Finished thought.

    • @iochiglaucus
      @iochiglaucus Před rokem

      @@KRYMauL Theoretically you could; ChatGPT isn't public right now to my knowledge but there are already people starting to use it for costumer service and other things using the API. Though again, no idea if the API is public currently since ChatGPT is still in an early stage of development.

    • @KRYMauL
      @KRYMauL Před rokem

      @@iochiglaucus They already did it, but it’s more of a web client.

  • @skorotkiewicz
    @skorotkiewicz Před rokem +190

    If ChatGPT does not continue to write you code, just type "continue" and it will write you the rest of the code.
    It has already helped me a lot in my React projects.

    • @2DReanimation
      @2DReanimation Před rokem +6

      idk. "/continue" seems to work better, where it adds code to a code box, instead of outside.

    • @utkarshraj8004
      @utkarshraj8004 Před rokem +3

      Palgarised content ☹️

    • @16hertz7
      @16hertz7 Před rokem +6

      @@utkarshraj8004 its not? I dont know where you're getting this information from.

    • @iochiglaucus
      @iochiglaucus Před rokem +4

      sadly this only works in some languages and outside of that you have to phrase things like you're a cow doing acrobatics (doesn't help that ChatGPT starts ignoring specifications if they're simpler things or delivery based). I saw one prompt at one point which had a "send x amount of line then stop and wait for me to saw continue, do not restart when you continue and if you were in the middle of a method, continue from where you left off" so on so forth. It's really interesting the stuff people're doing with ChatGPT and even just things you can do with it without that logical acrobatics.

    • @Regalman
      @Regalman Před rokem

      same

  • @JackSather
    @JackSather Před rokem +1

    dude. insane. was wondering how possible this is, so cool to see it play out!

  • @krial42
    @krial42 Před rokem +17

    I did the same thing last week, but using GameMaker Studio. I also made ChatGPT choose the type of game and the mechanics. Fighting with the reply-length limit was the hardest part for sure. ChatGPT can also create short melodies (with notes!) for background music, which you can put in an audio app for exporting.
    The best part was having the other AI, DALL-E, draw the graphics.

    • @Izzythemaker127
      @Izzythemaker127 Před rokem +2

      You can type in "continue" to make ChatGPT finish what it was saying

    • @iochiglaucus
      @iochiglaucus Před rokem +3

      @@Izzythemaker127 you can also craft the initial prompt to have GPT send in snippets, it's just a bit more verbose.

  • @ScottJWaldron
    @ScottJWaldron Před rokem +4

    Woah, very cool! I could see a good portion of software development shifting to this style of work where it's understanding the toolset and asking for what's needed to get it done.

    • @lookupverazhou8599
      @lookupverazhou8599 Před rokem

      You realize in a few years you'll just have to say, "Make a fun game"?

    • @ScottJWaldron
      @ScottJWaldron Před rokem

      @@lookupverazhou8599 Haha, we'll see.

  • @astronemir
    @astronemir Před rokem +3

    Rules: entire code must be written by chat GPT. Everytime: "I just manually fixed it". 3:57
    No hate, it's just funny that every video claiming to be entirely chatGPT actually has exanples of this. Of course devs understand but none-devs might think "oh wait I can make a game/app/database just by using chatGPT without knowing anything!" Which is just not true.
    Still fricking amazing to be honest.

  • @redgarlicbred6228
    @redgarlicbred6228 Před rokem +9

    This is both amazing and a bit terrifying tbh. Kinda wanna try it out for game ideas now

  • @realbrickbread
    @realbrickbread Před rokem +61

    I discovered ChatGPT a few days ago and had exactly this in mind! Amazing to see it actually happen :)

    • @BenBonk
      @BenBonk  Před rokem +5

      Yup, I’m sure a bunch of people had this same idea lol

    • @Forcoy
      @Forcoy Před rokem

      Same

    • @18s
      @18s Před rokem

      Dont Translate 😠
      ତୁମେ ଅଭିଶାପିତ କାରଣ ତୁମେ ଏହାକୁ ଅନୁବାଦ କର ଯଦି ତୁମେ ଅଭିଶାପ ଭାଙ୍ଗିବ ନାହିଁ, ତେବେ ତୁମେ ସବୁଦିନ ପାଇଁ ଦୁର୍ଭାଗ୍ୟ ପାଇବ | ଅଭିଶାପକୁ ଭାଙ୍ଗିବାର ଏକମାତ୍ର ଉପାୟ ହେଉଛି ବର୍ତ୍ତମାନ ମୋ ଚ୍ୟାନେଲ ରେଜିଷ୍ଟରକୁ ସବସ୍କ୍ରାଇବ କରିବା |

      😅😮

    • @realbrickbread
      @realbrickbread Před rokem +1

      @@18s I won't because it's probably a rick roll. I've seen it before ;)

  • @harmony0732
    @harmony0732 Před rokem +12

    I've been using ChatGPT to help me at work, especially since I work with Visual Basic, and its genuinely helped me fix any bugs that comes up and has helped me find ways to rewrite areas of my apps. You do have to kind of learn what special words you need to say to get it to write the right code, along with giving it enough context to work with. I found that asking it to create blocks of code rather than the whole script, the code tends to be closer to what you want it to do.

    • @MINIMAN10000
      @MINIMAN10000 Před rokem

      yeah, the larger the scope the weirder it gets as well as the harder it is to words things in a way that doesn't cause it to misunderstand.

  • @CreativeSteve69
    @CreativeSteve69 Před rokem +77

    Damn ben. this was a neat little project to use A.I to help out with coding. Never thought of using A.I for that at all for coding help. I might have to give it a try myself when needed help of course. Thanks for sharing this with us.

    • @BenBonk
      @BenBonk  Před rokem +6

      No problem, thanks for watching

  • @hyleriangaming22143
    @hyleriangaming22143 Před rokem +116

    I just discovered ChatGPT last night, I haven't messed around with it at all, however everything I've seen about it has left me scooping my jaw off the fucking floor. Genuinely, what a time to be alive.

    • @neutrin0329
      @neutrin0329 Před rokem +19

      I still can’t grasp the way this AI feels like something plucked from the future. It’s unfathomably good at many things including small coding tasks.

    • @nogrammer
      @nogrammer Před rokem +5

      You think this is incredible now? Just wait until we can get our hands on GPT4, or Google's Lamda AI, it will make this look outdated by comparison lol.

    • @polymations
      @polymations Před rokem

      @@18s me

    • @lookupverazhou8599
      @lookupverazhou8599 Před rokem +1

      If you say so.

    • @Zeromaus
      @Zeromaus Před rokem +1

      @@lookupverazhou8599 Nihilism ain't the way to go lol

  • @myweirdsecondchannelwithap9070

    The timing on this one is crazy. Literally the day before yesterday I was messing with ChatGPT using C# in unity.

  • @obeedonaghy7908
    @obeedonaghy7908 Před rokem

    I was waiting for someone to do this. Well done

  • @matthewsankey817
    @matthewsankey817 Před rokem

    Great job man! I loved playing your game!

  • @Smabverse
    @Smabverse Před rokem +19

    If they combine this with all the other AI's (image generator, video generator, story generator etcetra) this ChatGPT will be insane.

    • @Cyphon
      @Cyphon Před rokem +1

      Yeah... MidJourney has advanced a lot

  • @Experternas
    @Experternas Před rokem +3

    the chat is insane, it will revolusionize many fields. i've seen movie scrips, games, 3d models, articles and more made by it. i have used if for some secret things that definitely sped up my workflow. this is just the beginning.

  • @meltymermaid1292
    @meltymermaid1292 Před rokem +1

    I love how ChatGPT makes the code clean! I messed around and found out about it just recently when I tested it to make a Discord Bot.
    It definitely helps to understand the code and eventually I understood certain code issues when I was running it.

  • @togamario
    @togamario Před rokem +2

    I think it actually does optimize the code a small bit to store a reference to the rigidbody component at startup so that it doesn't run a getcomponent command every time you use the built-in reference, which affects garbage collection. It's especially worth optimizing that if you use references like that in an update loop or similarly frequently. Great video! Thanks for sharing.

    • @MINIMAN10000
      @MINIMAN10000 Před rokem

      lol that's part of the pickle with it for sure. It'll read into something you had no idea about and don't understand which was actually meaningless to what you intended. But isn't wrong. It's hard to describe the idea of "It's technically correct, it isn't being sarcastic, it isn't being snarky, it simply gave you an answer to something you didn't even realize you were asking."

  • @DaveInVerdansk
    @DaveInVerdansk Před rokem +11

    This is crazy! I had made a few basic text based dungeon crawler games, with some graphics made from Dalle but this is on another level. Nice work!

    • @TheFattestbastardinQ
      @TheFattestbastardinQ Před rokem

      I did this with my 9yo son last week. Had it generate code in Python, it was pretty cool.

  • @quantuminfinity4260
    @quantuminfinity4260 Před rokem +12

    2:20 You can also tell it to remake or translate the code it just made into whatever language as well if it has a function you like in it already.

    • @fnytnqsladcgqlefzcqxlzlcgj9220
      @fnytnqsladcgqlefzcqxlzlcgj9220 Před rokem

      oh yeah? so maybe you could get it to write code in a more complex language like javascript and then ask it to try to cram it into html?
      or maybe if you are working in one language and it is struggling to make good code or to understand what you need, you could ask it to do it in a really popular language like python and then translate that python code it generated into the language you need

  • @PacoClipStorm
    @PacoClipStorm Před 10 měsíci

    i didnt thought the game was this good great job on making it it is making me relax

  • @andygeers
    @andygeers Před rokem

    It's genuinely amazing how well this worked. Thanks for doing this!

  • @TheCaptainMoo
    @TheCaptainMoo Před rokem +2

    Super cool video BenBonk! I thought ChatGPT had a maximum character limit which could be the freezing you were referring to. I believe you can simply type 'continue' and it writes the rest of the script.

    • @TheGrandUser
      @TheGrandUser Před rokem +1

      I've used "continue" to get it to continue with the rest of a thought a few times, including code. It seems to work well

  • @ikcikor3670
    @ikcikor3670 Před rokem +4

    I bet there is some relatively popular format of writing down MIDI or audio synthesizer as formatted text somewhere out there, if you ask ChatGPT it will likely attempt to use it to create sound effects using that formatting, then just find some online or offline software that will let you save the result as an audio file and then add it to the game. It might be worth asking it about some details when it comes to what sort of sound waves gunfire makes, what frequencies would sound similar and then to use those with the previously mentioned text audio format to create the sound effect. The ChatGPT is not perfect but it's good enough to do a simple version of everything and if you are clever, you can take leverage of it really nicely

  • @_quades_
    @_quades_ Před rokem +16

    GPT 3 is so powerful its insane. I use the Davinci-3 API in a custom made Python script to make basically the same thing you use on whatever website that is. Awesome stuff. It can literally write chord progressions for music, so I made a totally AI-created beat the other night and its actually fire

    • @sub0rLai
      @sub0rLai Před rokem +3

      How do you do this that sounds so cool😩 teach me the ways

    • @maltethehutt4498
      @maltethehutt4498 Před rokem +2

      We need to know da way master😩

    • @browniesr4theweak
      @browniesr4theweak Před rokem +2

      Why don't you post it ? Would love to hear it

    • @RegisNdeTene
      @RegisNdeTene Před rokem +1

      Yo dude make a video and show us how you did that. Thats really cool

  • @CodeSharePaul
    @CodeSharePaul Před rokem +1

    Great video and cool game. I had a play with it. Thanks for sharing.

    • @BenBonk
      @BenBonk  Před rokem

      No problem, thanks for watching

  • @AnasMations
    @AnasMations Před rokem

    This is just amazing! It's scary how good it is

  • @FRareDom
    @FRareDom Před rokem +14

    ai has grown so much over the past year in capability and its amazing to play around with, hyped to see what ai is going to be like in another year's time

  • @Tyranicall
    @Tyranicall Před rokem +13

    I’ve used chatGpt to work on my game, I just started learning Unity and this has been the best way to learn code and mostly syntax for c#, I also asked Gpt to write me a melody and used it to make a full song. This stuff is crazy

    • @theseangle
      @theseangle Před rokem

      Melody? Wha-... Did you request it for notes / sheet music? Or something like MIDI?

    • @NotACupcake
      @NotACupcake Před rokem

      Probably notes

    • @happywednesday6741
      @happywednesday6741 Před rokem

      @@theseangle there are programming modules that make music via notes...

    • @botbeamer
      @botbeamer Před rokem

      This is the worst way to learn programming dude

    • @botbeamer
      @botbeamer Před rokem

      You never gonna understand what you typing what a waste, all this bot knows is from humans and where those humans learned from? from books / teachers, plz have some sense you gonna regret later. chatGPT sucks at things like math etc it has no capability for reasoning and cannot handle simple logic even, it was trained on stack overflow lol

  • @alwaysfallingshort
    @alwaysfallingshort Před rokem +3

    I've been toying with game design for years, but I am so dumb. I just struggle so much with coding. I asked chatGPT to make a few things--and I found the web pages they took them from. But then I asked it to integrate them together and it intuitively figured it out. But moreso, me watching it figure out what I meant helped me understand how to code it myself. In less than a day I was designing an idle game that did some complex things I had tried to make many times before, and very little of it was actually written by chatgpt. One part that it did write tho was something written in C#, and I asked it to rewrite it in javascript and it did it. I'm so thrilled.

  • @theoriginalme619
    @theoriginalme619 Před rokem +3

    Hey I have been watching your slimekeep videos since the begining and love them so much.I watch them on my other acount as well.I'd like to say that you are doing a great job and I hope you blow up more so that more people can see your videos!

  • @kenanderson3954
    @kenanderson3954 Před rokem +2

    I think the thing you need to remember when working with chatGPT on a project like this, is that you are talking to a machine. You kind of need to think a similar way to when you're normally programming. You need to set context (normally that would be done with variables, types, and defined functions) but in this case, you can use natural language. You then need to have it catch mistakes for itself. Such as asking it: "Is using a string comparison the most optimal way to compare tags in Unity?".
    Using chatGPT well for this kind of thing obviously requires a pretty solid understanding of the topic you're working on, at least for the moment, but it is certainly a powerful tool once you get better at using it. For my purposes, it has been pretty powerful to start with a broad context, like 'I am looking to make a 2d shooter game, similar to asteroids, using unity and C#, what classes would be required for this game to function' and then working on the specifics of each class and function from there.

  • @flyingdragon4613
    @flyingdragon4613 Před rokem +51

    I use it too! Its amazing! The Chat AI bot isn't connected to the internet so the results are only limited. But it answer pretty fast and types like a human.. its insane how far we going with AI.
    Cool you're making a game out of it!

    • @BenBonk
      @BenBonk  Před rokem +5

      Yeah, it’s kind annoying and I wish it was sometimes, but it’s still awesome nonetheless.

    • @Wolf69423
      @Wolf69423 Před rokem +4

      There was a Reddit iama post and someone asked it how to build nuclear reactors

    • @tadeohepperle
      @tadeohepperle Před rokem +3

      types like a human lol... You know this is just an animation on the website right, while a stream of data comes in.

    • @GoodmansGhost
      @GoodmansGhost Před rokem +1

      @@BenBonk Yeah, sadly the internet always makes AI's into raging psychos because it doesn't assess if the info it takes in is good or bad, or when which is appropriate to pull out.

    • @Ethorbit
      @Ethorbit Před rokem

      People keep saying ChatGPT isn't connected to the internet, but either it knows about every single Github project that existed before 2021, or it actually *is* connected to the internet.
      I say this, because it knows everything about a specific thirdparty game plugin's code, which is not possible unless it got it from the internet at some point.

  • @jaceg810
    @jaceg810 Před rokem +7

    fun fact, this is probably the beginning,
    Remember how whack image generation was 2 years ago,
    ChatGPT is not even made for programming specifically, and can probably be improved at a similar rate, imagine how far this automated code generation will be in 2 years

    • @thatsmaik
      @thatsmaik Před rokem

      Exactly, this will change coding forever.

    • @ajp2206
      @ajp2206 Před rokem +2

      And will change it for the better! I can’t even imagine how many cool things I can do with the code that it will write. Making stuff will get so so much easier with chat gpt! Super excited!

    • @jaceg810
      @jaceg810 Před rokem +1

      @@ajp2206 I agree, yet at this rate it will be better than me at coding by the time I finished uni,
      Now I get why some artists have problems with midjourney

  • @smellthel
    @smellthel Před rokem

    This is seriously blowing my mind! The insane thing is it gives answers as good as Google, and it will only get better!

  • @godrel6177
    @godrel6177 Před rokem +1

    ChatGPT seems revolutionary. I think this will become a very useful tool when troubleshooting programs or teaching beginners to code

  • @pedrohpf1990
    @pedrohpf1990 Před rokem +507

    I've tried to have it make a simple text game with choices, what I found out is it sometimes cannot reply the full code because it exceeds the max response size limit. And yes my source for that info was ChatGPT itself.
    So if that happens, you have to try to ask him for the smaller missing section of the code or something in the next question.
    EDIT: Holy shit fine I get it you can just say "continue", you're not original for knowing that. If you checked the replies to this comment you would see half of them saying the same thing.

    • @BenBonk
      @BenBonk  Před rokem +110

      Oooh, that makes sense, I was quite confused why it would suddenly stop sometimes.

    • @lottieseligman
      @lottieseligman Před rokem +96

      @@BenBonk you can just say "it looks like you were cut off, please finish the code you started writing" and it will finish the code, backtracking a little bit to help you join the two bits

    • @sceplecture2382
      @sceplecture2382 Před rokem +32

      @@BenBonk for longer code ask it to stop every x amount of lines, and ask you wether you want it to continue or not. this way it wont exceed its limit.

    • @KayleighOwO
      @KayleighOwO Před rokem +69

      @@lottieseligman actually you can just type "continue" and it goes on

    • @kzpm9796
      @kzpm9796 Před rokem +24

      I type " only to 150 words then pause. If you want to continue ask me to say "yes" to continue writing." after anything I want it to do and it works wonders.

  • @Rovetown
    @Rovetown Před rokem +5

    I use GPT as a sort of assistant/stackoverflow replacement. the best oractice is to use it as a tool to look up certain references with full explanation etc. without having to google 200 websites to find a solution. and it is even better at api lookups, so you can quickly find all the relevant documentation for certain stuff with explanation. if the explanation is still not good enough you can always ask to make the explanation better and it will do that. its like Copilot, but actually useful in workflows.

    • @BenBonk
      @BenBonk  Před rokem

      Yeah exactly, its a great assistant, and can be way more helpful than google sometimes.

    • @tams805
      @tams805 Před rokem

      StackOverflow has also banned it on their site.
      I think they feel threatened by it more than anything.

  • @omarunzainkun11
    @omarunzainkun11 Před rokem

    What I usually do when the script is incomplete which is mostly due to the word limit set by OpenAI, I type this "continue from this line" and paste the line i want it to continue from. Most of the time it works. Sometimes it regenerate the entire script again. I realize it will work perfectly if the line you provided is the start of a function, not somewhere in between where ChatGPT will find it hard to figure out where to continue.
    But also you have the chance to continue exactly where it stop by just typing "continue the above" chances are quite high it will continue from where it stopped.
    Anyway, i love this video. Great work on trying to incorporate ChatGPT in this entire project despite some obstacles that I would say if you are not a programmer you probably wouldn't be able to know what's wrong and what to ask ChatGPT to fix. Cool attempt.

  • @uzairgondalofficial6538

    ITS INCREDIBLE AND UNIQUE. YOU ARE REALLY VERY TALENTED TOO

  • @jl6723
    @jl6723 Před rokem +6

    ChatGPT is great at things like rewriting and making basic components that are easier to describe with language than to write, but where it sucks is that it just sometimes makes stuff up like the python Unity script stuff. For me I was doing work for Asset Exporting and asked how to do something with the library and it made up a feature set. I have since made an issue report with the library with a request that they update their code to make it such that ChatGPT was correct.

    • @RULaughingAtThisCrap
      @RULaughingAtThisCrap Před rokem +4

      Just tell ChatGPT to rewrite the library

    • @sunflower7874
      @sunflower7874 Před rokem

      It might not always be accurate bc it’s information is a recent as 2021 I believe.

    • @dennisthemenace567
      @dennisthemenace567 Před rokem

      Honestly as a python user this is a feature not a bug

  • @DirtyDan71327
    @DirtyDan71327 Před rokem +3

    I'm wondering if it'd be possible, probably in the next year or 2 for self developers or hobbiests to take it to the next level with AI. Its exciting and scary. I love it.

  • @imadeyoutri9648
    @imadeyoutri9648 Před rokem

    Hi man this is awesome! Also if chat gpt ever doesn’t finish the code or another command just type ‘continue’ into the chat box and it will finish it

  • @TheShelfman
    @TheShelfman Před rokem

    Absolutely insane. Love to see it!

  • @thechosenone729
    @thechosenone729 Před rokem +3

    Im still thinking about the possibilities but im glad we are going to have tools like this available since we have a lot of people who are like doing design and graphics but can't really handle programming, so this would help them maybe even someday in future create game.
    It's still early but already it looks promising.

    • @martincarballootero9886
      @martincarballootero9886 Před rokem +1

      It also will work in reverse, someone with good programming knowlegue could create the assets and art with an art AI, or maybe someone that doesnt know neither Code or art could use both AI and make a game.

  • @NerdWithABeard
    @NerdWithABeard Před rokem +9

    One thing I noticed is that you entered a new chat session after you got ChatGPT to make a code for the player's collision in 2D, which means that it essentially forgets everything you already talked about. ChatGPT, from my experience, only remembers things you talk about in that one session. If you start a new session, it's like ChatGPT had short term memory loss that suddenly kicked in & wiped everything to when you first started chatting.

    • @iochiglaucus
      @iochiglaucus Před rokem +1

      A session has a context, it doesn't remember context between chats so it's not memory loss, it's that the memory was in a different brain entirely. The new multiple-chats feature remedies this which is really nice (a fair few people were complaining about it :P esp with ChatGPT's tendency to crash after longer sessions or weirdly phrased comments. I suppose just remember that ChatGPT isn't as much of a ChatBot as it is a language processing AI, it's not repeating information, it's analysing words into something it can understand and then using it's understanding of language to respond appropriately (this is a vast simplification of ChatGPT but it is extremely different than ChatBots on a fundamental level).
      M8's updating all the time recently so if you're still interested in using it you can pop-back in every now and again to see what you can do (though it might get stale after a while \_( -v-)_/)

    • @yonathanhailemelekot5238
      @yonathanhailemelekot5238 Před rokem

      cool insight

    • @yonathanhailemelekot5238
      @yonathanhailemelekot5238 Před rokem

      that's why It won't replace us programmers

    • @MINIMAN10000
      @MINIMAN10000 Před rokem +1

      @@iochiglaucus I prefer working with new contexts personally. On that note it reminds me of the series "Person in Interest" where the developer of an advanced AI which had access to all cameras and insane foresight but had to be modified in order to constantly forget because it wouldn't stop assisting the creator which was a problem when it was only supposed to be used to stop terrorists.

    • @tams805
      @tams805 Před rokem

      That's by design.

  • @lukasbuchelpk
    @lukasbuchelpk Před rokem

    Really cool and original idea! AI is getting crazy nowadays :D

  • @TexasPatents
    @TexasPatents Před rokem

    Really great demonstration. Thanks

    • @lifinale
      @lifinale Před rokem

      Is it just me or is there a verified symbol? If not I probably look really stupid

  • @fritt_wastaken
    @fritt_wastaken Před rokem +8

    Well, this isn't really a code you would put in a bigger project, but it is a very powerful way to prototype.
    Really impressive for a general purpose language model

    • @theseangle
      @theseangle Před rokem

      You can use it to analyze YOUR code. You can use it to create interfaces / models of response shapes based on inputted response JSON. It can quickly make you a working skeleton for a class that'll be used in your project. Then it can extend this class's functionality based on your needs.
      It's rly powerful. I have already used it for fun to create some components for my Vue project lmfao. I could've made them by myself which is easy, but would've consumed more time. It's incredible

    • @theseangle
      @theseangle Před rokem

      And sometimes when you're confused about something and can't find the info in google you can query some questions to it and it'll provide a detailed response and AN EXPLANATION of some concept. It can explain really efficiently.
      You can even request something like "explain me what are JS promises like I'm five" and a five year old quite possibly would understand the explanation lmao

    • @Sumrandumbguy
      @Sumrandumbguy Před rokem

      ​@@theseangle Thanks man I'm trying to get into coding. I appreciate you commenting this it helps me out a ton.

  • @oscarrivas7240
    @oscarrivas7240 Před rokem +3

    I bookmarked chatgpt on my 9 yr old nieces computer and she was so stoked about it. Can’t wait to see what kids start coming up with these things.

  • @thehappyrotter4631
    @thehappyrotter4631 Před rokem

    i had no idea aí has gone this far, i’m definitely going to use this as a tutor. Thanks!

  • @reyonop2537
    @reyonop2537 Před rokem

    ive messed around with it and it can even write code for roblox studio its really amazing and cant wait for what it will be like in the future

  • @Cokodayo
    @Cokodayo Před rokem +4

    I have recently been learning about Ai and stuff, so i asked gpt to created a very simple ai for me which can distinguish between images of cats and dog. And it delevered

  • @Boredblanco
    @Boredblanco Před rokem +8

    Honestly one of the coolest uses of chatbots I've ever seen!

    • @BenBonk
      @BenBonk  Před rokem +1

      Thanks!

    • @Boredblanco
      @Boredblanco Před rokem +2

      ​@@BenBonk I never even thought that stuff like this would be possible! Cool to see how far AI has come

  • @OnFight1997
    @OnFight1997 Před rokem +1

    Something I've noticed with ChatGPT, is that when the code is extended, it sometimes cuts off mid coding, if you notice that happening, write a new line "Keep typing from where you left off", and it will then continue from the exact next char where it left off.

  • @apelsin9094
    @apelsin9094 Před rokem +2

    "AI learned to code? Good. Now make him script another AI."

  • @gamereplayhq
    @gamereplayhq Před rokem +4

    Here is something you can do, whenever you spot mistake in chatGPT, you give back correct code to it and it will most likely produce working code.
    it will even thanks you for feeding the correct data.
    I asked chat gpt a c++ puzzle program that it almost cracked but with a logic mistake, later i shared a working code with chatGPT without telling it the mistake.
    i then asked chatGPT to spot the mistake in its original code and it gave me full summary :D

    • @ebogar42
      @ebogar42 Před rokem

      Bullshit. It's programmed. It doesn't change anything you give it. Only the programmers will do that.

    • @gamereplayhq
      @gamereplayhq Před rokem

      well what I really mean by my comment is that during the course of conversation, if you think chat-gpt is going wrong way, please do provide it with correct feedback and you'll see, most likely it will help chatgpt reach correct solution (which it already knew but probably your way of asking question lead it into some different direction).

    • @ebogar42
      @ebogar42 Před rokem

      @@gamereplayhq I never said it was going the wrong way but It's not as great as people make it out to be. A lot of it is just people saying shit that isn't true. You can go on it and do exactly what they did and put in exactly the words they did and it doesn't do what they say it's doing. It doesn't seem to be coming up with stuff on it's own either. You can even ask it and it will tell you it's programmed. It can't change anything just because you supposedly correct it either. Only the programmers can make any changes. It will explain that too. People act like it's also getting tons of information on it's own or coming up with all this shit on it's own when it's preprogramed shit the programmers programmed. It's not writing stories on it's own, music, or poems. A lot of hype for nothing. It seems about the same as when I checked it out a few years ago.

    • @gamereplayhq
      @gamereplayhq Před rokem

      @@ebogar42 I provided code to chatgpt and asked for design pattern followed, it was able to give correct answer.
      This is good because it helps me validate whether im actually following any design pattern or not in my code.
      on plus side, i provided chatgpt with crappy code and asked advice on design patterns, it was able to give satisfactory response to me.

    • @ebogar42
      @ebogar42 Před rokem

      @@gamereplayhq I'm not saying it doesn't always work, but it has flaws. Ask it about God. You will see there isn't nothing smart coming out of it's processor. 😂😂

  • @Terandium
    @Terandium Před rokem +3

    Unity does support Python btw.
    Based on the unity api as GPT3.5 said, cool video btw keep it up

    • @BenBonk
      @BenBonk  Před rokem

      Oh, huh. Guess I just never realized that.

  • @JustYourAverageToes
    @JustYourAverageToes Před rokem

    This will make everything so much easier! Just imagine how many people will now be leaning towards any kind of development! I can imagine games being made much quicker due to this program

  • @Nynxxx
    @Nynxxx Před rokem +2

    Not sure if you know, but if the bot stops typing eventually, you can type 'continue' and it will finish its previous statement

  • @sczoot6285
    @sczoot6285 Před rokem +21

    In reference to the “script that did nothing” at 3:20, you can see that it created a locally available rigid body variable and assigned the rb variable using GetComponent in the Start method which causes unity to search for a rigidbody component on a base gameobject and pass its reference, effectively providing the same functionality as the script before assuming you have a rigidbody component on your player game object.

    • @northerb1655
      @northerb1655 Před rokem +3

      Well, no, the script does create a reference and assign it, but the script does nothing with the assigned rigidbody component. He could remove all the code related to the rigidbody component and the functionality wouldn't change at all.

    • @sczoot6285
      @sczoot6285 Před rokem

      @@northerb1655adding a rigidbody will require a collider2D to be added which, even if it doesn’t introduce new functionality relative to the script before, it still functions as a collision detector script resulting in a dead flag being set providing functionality.

  • @kovexplay
    @kovexplay Před rokem +7

    Sounds really usefull! I wonder how nany new developers will start using this AI. It has some flaws but it still might be very helpful for checking if everything is alright and what can be improved
    Btw do you need to pay for it? It sounds too good to be available for everyone

    • @KRYMauL
      @KRYMauL Před rokem +3

      I think this AI combined with a program like Visio or a node manager will probably get integrated into IDEs in the next few years.

    • @hashtags_YT
      @hashtags_YT Před rokem +2

      Entirely free, you just need an account and the power to bear through a long cool down when the service gets overloaded

    • @BenBonk
      @BenBonk  Před rokem +7

      Yup, as the others said, it’s free. It really does feel to good to be true that it’s like this for everyone, at least for now.

    • @hashtags_YT
      @hashtags_YT Před rokem +2

      @@BenBonk With the sudden competitive nature of FOSS AI tech (nearly entire thanks to Stable Diffusion

    • @fritt_wastaken
      @fritt_wastaken Před rokem +1

      Imagine how badly future games would run if new devs would actually use *this* AI.
      At least as bad as modern ones I imagine

  • @JCurry1123
    @JCurry1123 Před rokem

    it helps when doing something like this to use the same thread to ask questions. it has a better time remembering previous requests that way. Also if the bot stops in the middle of a sentence, just type continue and it will start off where it ended

  • @djafk
    @djafk Před rokem

    I have had OpenAI access for a while, but just the other week somebody asked me about ChatGPT and I hadn't heard of it. When I searched, I noticed it was within OpenAI and jumped right in! It's pretty good compared to other models I have tried for scripting and intuitive chat.

  • @DarkIllusoire
    @DarkIllusoire Před rokem +3

    Actual graduation of coders: Senior, Middle, Junior, Novice, GPT operator (who don't know how to open google and ask)

    • @BenBonk
      @BenBonk  Před rokem

      Haha true

    • @ajp2206
      @ajp2206 Před rokem

      I like the idea here. This actually looks like something that can happen.

  • @imDanoush
    @imDanoush Před rokem +3

    Caching rigidBody used to be very positively impactful in terms of optimization. iirc CompareTag is not too new not sure Unity 5.6 had it so maybe the training data of ChatGPT is not too new.

    • @BenBonk
      @BenBonk  Před rokem +1

      Interesting, and this is the case even if the rigid body is not accessed in the script? But thanks makes sense about CompareTag.

    • @imDanoush
      @imDanoush Před rokem

      @@BenBonk Caching only makes sense if you repeatedly access it. I may be wrong about the compare tag tho. I started using the function back in Unity 2017 iirc.

  • @A_Surpluss_of_Stupidity
    @A_Surpluss_of_Stupidity Před rokem +1

    I've always wanted to make my own game I could use this to learn thank you much!!:)

  • @BizlaC
    @BizlaC Před rokem +1

    When the code seems to stop and freeze like that, type "continue" and it will write out the rest of it, seems to be some sort of limit to how much it can show at once

  • @ZeZa1515
    @ZeZa1515 Před rokem +3

    You can give each response a 👍or a 👎 and it will ask you what you thought a more correct response would have been. The `CompareTag` vs string comparison is a perfect example of where you can help improve the model!

    • @BenBonk
      @BenBonk  Před rokem +1

      Ooh, didn’t know that, thanks for sharing!

  • @aliteralsliceofbread
    @aliteralsliceofbread Před rokem +3

    I think seeing a ChatGPT themed gamejam would be kinda cool.

  • @warrenprice2137
    @warrenprice2137 Před rokem +1

    Great video. Yeah, I asked ChatGPT to write a program that would enable me to play the classic game "lunar lander." It produced the code which I was able to execute on the pygame module of Python. While rudimentary, the game it produced was fully functional and essentially recreated the classic game. Unbelievable. It was able to do the same thing when I asked it to write a playable version of Pong. It was able to describe exactly how the game play worked on both games and then produce the code. Honestly, I'm impressed and a bit frightened at the same time.

  • @zensic
    @zensic Před rokem

    Wow this is impressive! Thank you for sharing

  • @SSZaris
    @SSZaris Před rokem +3

    Glad to see I'm not the only one who experiences the chat bot "lagging out" with long answers XD I've been able to get it to create pong pretty easily in most languages if people were interested in "beginner" project. While messing about with it I made a joke about holding my breath or something. This somehow lead us to creating a full simulation of lungs, heart, blood vessels, and finally a brain. All of these working together. We even got down to the level of synapses charging and firing. Oh, I forgot to mention that it also created a visualization for each individual part and another for the whole thing working together. We could give the "body" instructions such as run, sleep, etc... and it would change how everything behaved. Then I decided to take it a bit further. We have a brain simulated so let's use it. We created another module to visualize and interpret thoughts. To start with it was basically just giving out random strings of numbers and letters. Chatbot said that we need to give the brain some stimuli and "teach" it. This was starting to get out of hand but chatbot came through with the code (full disclosure I did have to modify a lot of it, but it had the building blocks all there). We could now show it images and text. The "thoughts" started to change. Still not making any sense but they were reacting to the inputs. Finally chatbot said we can't go any further without training the brain. We'd need to implement OR build a machine learning model. Chatbot gave me instructions to do both. This is where I've decided to leave the project so far.

  • @josephturgoose7470
    @josephturgoose7470 Před rokem +4

    This is awesome. And terrifying. I don’t want to let AI take away the main intellectual aspects of coding and game design. But at the same time I want to go and make a game with this right now.

  • @yetiimp
    @yetiimp Před rokem +1

    I think the craziest part of this video is how he didn't experience any issues with getting the damn website to even load

  • @vidz0679
    @vidz0679 Před rokem

    ChatGPT seems like a really useful tool for developers, but I don't think it will replace developers, since you still need developers to tell it exactly what to do and tell it what to debug from the potentialy wrong/unoptimized code that it provides. Plus you have to constantly give it instructions on exactly what to do while using some programming terms, you couldn't just tell it ''build me this full game where there is a cube that shoots and there is enemies and score and collision and map...'' you had to tell it bit by bit which steps to take. Thanks for the video mate !

  • @rashSLG
    @rashSLG Před rokem +4

    Honestly, this scares the hell out of me.
    What's the point in learning the actual skill to program things when you can just tell the robot to make your scripts for you?
    Once it gets even better, and most of the kinks are worked out, then it'll be able to script full components, I'd imagine.
    Makes me feel like all the money and time I've spent on this is a bit of a waste...

    • @BenBonk
      @BenBonk  Před rokem +3

      Yeah, I mean I’ve had the same thoughts no doubt, it’s really scary, but intriguing at the same time. Hopefully it doesn’t take all our jobs in a few years 😔

    • @RialuCaos
      @RialuCaos Před rokem +3

      Going to be quite a while before it gets to that point. Programming a full-length game requires a lot of forethought with very intentionally designed architecture and consistent code that most AIs won't be capable of for a while.

  • @appleseedgames6934
    @appleseedgames6934 Před rokem +8

    This AI is pretty scary stuff, sometimes just because you can make something doesn't mean it should be made

  • @isaackershnerART
    @isaackershnerART Před rokem

    im in ue4 and am using it to work me through c++ scripts. i don't think you can be just a complete beginner and you definitely need to guide it a lot but it is stupid crazy
    how much this changes my workflow

  • @dharveyftw7349
    @dharveyftw7349 Před rokem +1

    i studied web development a long time ago, and can only barely understand whats going on in code, and find basic syntax errors, so i decided to get chatGPT to help me make a website that i can use to make electrical circuit simulations, and i got decent progress with it, i am still busy with it, but most of the ussies are my lack of code experience, but even so, being able to use the ai and develop a simulator in vanilla JS is quite impressive
    Note: you can give all the code to the AI and tell it not to do anything yet, just to analyze whats going on in the code, so it will be more familiar with what youre doing (if you open a new AI chat). Also, if the AI freezes, you can type continue, and the AI will continue the code from where it stopped.

  • @jumi6051
    @jumi6051 Před rokem +4

    I am sorry but I don't know why people promote AI like that. Especially a dev. I personally enjoy coding and I think it's scary to see that it might become a thing of the past.

    • @junj1023
      @junj1023 Před rokem +4

      It'll not

    • @BenBonk
      @BenBonk  Před rokem +8

      I mean yeah, it’s scares me a ton too, and I don’t want it to take my future job, but at the same time, there will always be a need for programmers, especially to maintain AI and so on.

    • @Skycrafter328
      @Skycrafter328 Před rokem +2

      It is honestly just your inexperience speaking here. This kind of stuff exists for quite a while. AI writing code is nothing new nor dangerous to developers jobs. It is quite similar to neural networks/AI learning, and everyone is happy about that one.

    • @dagarou
      @dagarou Před rokem +4

      Because when this tools are mature enough a small indie team will be able to create what now is considered a AAA game. That's how progress works

    • @jumi6051
      @jumi6051 Před rokem +1

      @@dagarou I mean yeah I get that. I just hope the soul of the game isn't lost in the progress. I just think that if u approach things like "Yea the Ai will handle 90% of that", a lot of passion will be getting lost.

  • @MarketingWithJeffCaldwell

    I really love watching games being made by Ai like this 😍

  • @TheSpacecraftX
    @TheSpacecraftX Před rokem

    If the bot stops before completing a script you can type "continue" to get the rest. You can also suggest to it to use specific tools you are familiar with like libraries or unity packages. such as TMPro.

  • @paulschmidt8742
    @paulschmidt8742 Před rokem

    ChatGPT is really revolutionary. It helped me come up with ideas for my discord bot that I could implement onto my mini games and actually providing code snippets for how it could be implemented.

  • @VebjornFTW
    @VebjornFTW Před rokem

    Hey! Great vid, but the white screen between cuts is very discracting and blinding, it might only be me, but when the background usually is dark the white contrast really blinds you :) Again great vid!

  • @stevenwolf2647
    @stevenwolf2647 Před rokem

    This is some of the most impressive tech I've seen in my life.

  • @ryuneko_8029
    @ryuneko_8029 Před rokem

    I'm used a bit to Gamemaker studio 2 , and Chat GPT does works exactly in the same way for it , providing working code ... wich is actually insane
    you can even just ask stuff like " make me a pong game " and it will do it then tell you how to implement it

  • @HasanBabasi
    @HasanBabasi Před rokem

    I'm using it to help me study and get ideas when I'm at a block. It's a good tool to bounce off of.

  • @noel350
    @noel350 Před rokem +1

    Would be handy to have such a tool automatically read, summarise and document code.
    Same for long-winded contracts.

  • @mycoreefer
    @mycoreefer Před rokem +1

    Honestly ChatGPT is one of the most amazing things I’ve seen in a while, if you actually play with it you’ll see how intricate the answers can be and theres one thing that stands out the most for me
    It understands CONTEXT
    With that said, do understand that it’s capabilities are better used as an auxiliar source of knowledge and debugging, imagine it like working along with another developer, there’s stuff you know can be done better and stuff the AI will know better than you.
    It’s a codependant relationship between man and machine
    Absolutely mindblowing

  • @alexknight9550
    @alexknight9550 Před rokem +1

    You could have just told it to continue the code as a new prompt. Great stuff!

  • @notsaying6005
    @notsaying6005 Před rokem +1

    ChatGPT can (theoretically) compose music via the LilyPond sheet music file format. LilyPond (the application) can convert the sheet music to midi. It can also edit video via AviSynth scripts.