game news Thanks to ChatGPT, a developer manages to create a video game in less than 5 minutes! The future is open
Artificial intelligence is definitely going to have an impact on video game development in the future, and it has already started!
We told you about Ubisoft that wanted to use AI to create assets for its games, we told you about a series of mods in Skyrim that allowed all NPCs to chat with us through ChatGPT generated dialogs… But do you know that This tool can also be used to program a game ! This is what developer Kris Kashtanova shows us.
Create a game by giving instructions to an AI in five minutes
Kris Kashtanova, a game developer passionate, tells about it Twitter how good she is impressed by the amazing capabilities of the ChatGPT Code Interpreter. In only For five minutes she was able to create a game with this revolutionary tool. By combining AI generators to create the resources of the game and the ability of Code interpreter to generate code required, developers can now save and preserve valuable time quick and effective results
The code interpreter in ChatGPT is amazing! It took me 5 minutes to make this game.
You can create your own game resources with any AI generator and then ask GPT-4 with Code Interpreter to write code. If you have problems, you can ask to fix the errors.
1. Write this prompt: “write…” pic.twitter.com/cqWpcfVq9J
— Kris Kashtanova (@icreatelife) July 9, 2023
ChatGPT interpreter code is amazing! It only took me 5 minutes to create this game.
You can create your own game resources with any AI generator and then let GPT-4 write the code with Code Interpreter. If you have any problems, you can ask him to correct the mistakes.
Write this statement: “Write the p5.js code for asteroids where you control a spaceship with the mouse and shoot the asteroids with the left mouse click. If the spaceship collides with an asteroid, you lose. If you destroy all asteroids, you lose profits! I want to use my own textures for the spaceship and asteroids.
Go to the openprocessing site, create and save your sketch (you must save before downloading texture files). Copy and paste the code generated by GPT-4.
Create texture files and remove backgrounds, for example with Clip Drop.
Replace the names of the files with the names you want.
Start the program.
If something doesn’t work, ask GPT-4 to fix it (you can copy and paste an error into GPT-4) just like you would ask a human programmer.
To learn a little more about programming, write these instructions to GPT-4: “Act like my programming teacher. Explain to me in detail the Asteroids game algorithm and provide function names that explain what each of these functions will do. Don’t.” still write the code. then “Can you describe the algorithm globally for a 10-year-old child?”
The game developed by Kris Kashtanova is a clone of asteroids created with Code Interpreter by ChatGPT. With this powerful tool, Kris was able to create a Smooth gameplay where the player controls a spaceship with the mouse and shoot down asteroids with the left click. The aim of the game is to destroy all asteroids without colliding with them. In addition, the game offers the Ability to use custom textures for the spacecraft and asteroids, which makes that possible Players the ability to personalize their experience Game. This success shows the enormous potential of the Code Interpreter Simplify and accelerate the development process of games, i.e. opening new creative possibilities for developers.
The code writes itself, you just have to be creative!
The OpenAI Code Interpreter is a breakthrough feature that pushes the boundaries of AI capabilities in game development. He acts like one Scientist acting as personal data assistantwhich enables developers Run code, analyze data, create charts, modify files, and perform math operations
The future of video games? At least that’s how it seems on the one hand…
We can see others on the networks Developers explaining how they created/recreated their games via ChatGPT, like Alex Ker who did created his own Flappy Bird in seven minutes :
👀 I used OpenAI’s code interpreter to create Flappy Bird 🐦 in 7 minutes:
Code interpreter/GPT-4 for code generation.
Existing or AI generated assets for graphics.
—
How to create the game in just 6 steps:
(1): Enter the following prompt:
“Write p5.js code for…” pic.twitter.com/o4Dic9jtoI
— Alex Ker 🔭 (@thealexker) July 11, 2023
The use of AI in game development is also opening up exciting perspectives for more immersive experiences. Thanks to AI, the next generation of video games should emerge have smarter NPCs and a automatic content generation. AI improves various aspects of game development, including Creating realistic NPCs, designing more engaging levels and generating content dynamically Game. Thanks to AI, game worlds more interactive, engaging and personalizedProvision of Players unique and fascinating experiences. While challenges remain, the future of AI in gaming is bright the promise of pushing the boundaries of creativity and improve the overall gaming experience.
There is no doubt that in the future we will see more and more video game creations or elements integrated into games generated by artificial intelligence.