This Game was Made ENTIRELY by AI... (ChatGPT & MidJourney)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome my dudes today we're about to shatter all our expectations and stereotypes about the limits of artificial intelligence and we're about to create a game in unity that is not only made with AI but made entirely by AI That's right no human intervention no cheating no Outsourcing to aliens or Dolphins just pure unadultered AI power we will play the role of a project manager while chat GPT will be our developer for today and mid-journey will be the artist I believe at this point everyone has heard about both of this AI but in case you did not I have linked some videos in the description that explain the concept really really well now you might be wondering can AI really create a game that's fun engaging and Visually stunning who knows we might just witness the birth of the next Mario or fortnite or we might just create a game that's so bad it will make us regret our entire existence either way it's gonna be a wild ride so buckle up hit that like And subscribe button and let's get started first things first we need a player character and we need it to move I didn't want to be too edgy here so I made the circle you get it no Hedges anyways that will change once we get to generating the art assets but for now this temporary Sprite should suffice now to make a jump we will go to chat GPT and ask it to generate us some Unity code for a character controller that will make the character jump when we press the space button or we touch the screen in order to have a smooth jump I wanted to make it physics based so we will apply a force to the rigid body and just like that we have a code snippet that does exactly what we requested not only that but it even explains you how to exactly use the script underneath it resulting in a code much better organized than my entire life as some of you might figure it out already this code will not work as it is because we would need to have that rigid body component first attached to the player but remember we are project managers so our entire task today is to do nothing and which the developers struggle so let's ask Chad GPT now to also check whether the rigid body component is applied if it's not then just add it and as we can see it easily updates the previous script with the new functionality time to implement all this code in the project and see if it's working the rigid body component was successfully attached since the ball was pulled by gravity downwards however to test the jumping mechanics we would need some ground box so that player has something to land on once again just for testing purposes we will add this square box which will be our temporary ground alright should be working now oops yeah I forgot that we don't have any colliders attached to the player so back to Chad GPT similar with the rigid body component we will check if it is already there and if it's not we'll attach it from code copy pasting the new snippet and just like that the player is now able to jump um or fly well the problem is that the code allows us to jump every time we press space or touch the screen but to avoid flying we need the jump to only work when the player is touching the ground back to our developer and let's ask him just that and here is something quite interesting actually happened for those of you who are not aware I'm now back in my home country Moldova and my internet connection here is even less stable than Bitcoin prices so while Chad GPT tried generating a solution for my request I guess I ran out of potato bandwidth and it got stuck the interesting thing however is after refreshing the page and regenerating the response I got a much better solution than the initial one instead of suggesting me to check the collision with some overlapping spheres now it simply used the Collision detection methods from Unity which I believe makes much more sense who said the AI can't learn right this dude is smarter than all my CS go teammates combined me included as we can see the generated code checks whether we are colliding with the ground by checking the layer name of the collider so let's ask Chachi piki to make us a script for that ground object such that it will work with the current stuff we already have and since we want everything to be made by AI once again we will check if there is a collider and add it otherwise at a little mad but I gotta confess for a few seconds I had to forget that I'm a project manager and actually do some work for this project luckily it only took me five seconds since Unity does not allow you to add new layers from script I had to quickly do that myself but I don't think that counts does it with all that implemented everything seems to be working as intended the player and the ground have physics and colliders and you cannot jump if you're already in the air awesome but it's time to make this entire game look a little prettier and as mentioned in the beginning our artist today is mid-journey AI from Discord I have asked it to generate some characters like that dinosaur from Google's game but I wanted it to be a penguin instead and soon after I got some really nice pixel art results I was generating the art with me journey and cropping it in Photoshop because when it comes to game design why settle for stock images when you can have custom-made poorly drawn characters am I right oh I also made this small animation for the penguin in literally 10 seconds by moving the legs and slightly scaling the body but we won't tell anyone about it right snitches get stitches keep that in mind mid-journey also generated for us these seamless backgrounds and just like that the game already looks better than the dots and squares we had few minutes ago back to the gameplay we need a way to spawn and move obstacles so I asked chat GPT to make such a system where we spawn obstacles and move them while the speed keeps increasing further you get as we can see the generated code does just that but it requires another class called obstacle mover in order to function so after generating the obstacle movie script and copying all of that into the project I created a simple obstacle prefab to which I applied the script component I added the temporary Sprite and just like that our obstacles are working yeah we got to reposition the spawner but the mechanics are working chat GPT even knew that we should destroy the obstacles and not just let them move pretty cool backdoor artist mid-journey which quickly generated a much better looking obstacle but now we need the penguin to die when it hits it because in this game failure is not an option it's mandatory and my internet broke again alright we got a end game script but the Collision function needs the character to have the player tag attached so as previously done we will ask Chad GPT to check whether the tag already exists on our player and assign it otherwise once that was done I made quickly this button but we need a way to reference it from the code as well as some colliders on the obstacles so after some back and forth with our developer I got it to work great next I ask Chad GPT to make it so the obstacles are spawned with different heights you know to add a little more diversity just like any Netflix series and also made the button actually work with that working there was only one request left for Chad GPT and that was to make a square system that gets incremented with time and changes the text value on the screen however the AI made the small mistake or I guess you could say I didn't explain everything properly since the score kept increasing even after the game was over luckily that was an easy fix for our AI friend it just sets the time scale to zero when you lose the game and brings it back to one when you restart it I've spent a whole two minutes playing with post-processing effects in an attempt to make that look nicer and ta-da just like that the game is ready we have a game that was entirely made by an AI team the future is now old man of course it wasn't ideal there have been some small mistakes here and there that I had to fix for example it would try to reference a class named obstacle instead of the obstacle mover but overall I am both impressed and terrified by how far AI has gotten luckily if we're the time the AI Revolution will start I should have my own AI Army to fight on my side and help me survive thanks for watching smash that like And subscribe button and see in the next video bye
Info
Channel: ZuzeloApps
Views: 3,358
Rating: undefined out of 5
Keywords: chat gpt, midjourney v4, artificial intelligence, making a game with chatgpt, gpt 3, midjourney ai, i made a game, ai art, making a game, i made a game with chatgpt, making a game with ai, game dev, chat gpt 4 demo, chatgpt coding, artificial intelligence and machine learning, gpt 3 ai, making a game with chatbot, making a unity game with chat gpt, chat gpt unity, chatgpt unity game, chat gpt unity code, chatgpt unity c#, chat gpt unity script
Id: LW64De8ih8A
Channel Id: undefined
Length: 8min 33sec (513 seconds)
Published: Fri Mar 17 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.