Thanks to ChatGPT, a developer manages to create a video game in less than 5 minutes! The future is on

2023-07-12 05:33:14

Game news Thanks to ChatGPT, a developer manages to create a video game in less than 5 minutes! The future is on

Published on 07/12/2023 at 07:33

Share :

Artificial intelligence will have a definite impact on the development of video games in the future, and it has already started!

We told you about Ubisoft who 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 dialogues generated by ChatGPT … But know that this tool can also be used to code a game ! This is what developer Kris Kashtanova shows us.

Create a game in five minutes by giving instructions to an AI

Kris Kashtanova, a game developer passionate, tells on Twitter how much she is impressed with the amazing capabilities of the ChatGPT Code Interpreter. In only five minutes she was able to create a game using this revolutionary tool. By combining AI generators to create the resources of the game and the ability of Code Interpreter to generate code needed, developers can now save valuable time and get quick and effective results. This technological breakthrough opens up new perspectives and allows creators like Kris Kashtanova to realize their game ideas in a more accessible way et intuitive.

The ChatGPT Interpreter Code is amazing! It only took me 5 minutes to create this game.

You can create your own game assets with any AI generator and then have GPT-4 write the code using Code Interpreter. If you have any problems, you can ask him to correct the errors.

Write this instruction: “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 the asteroids, you win! I want to use my own textures for the spaceship and the asteroids.”

Go to the Openprocessing site, create and save your sketch (you will need to save it before downloading texture files). Copy and paste the code generated by GPT-4.

Generate texture files and remove backgrounds, for example with Clip Drop.

Replace the names of the files with the names you want them to have.

Launch the program.

If something doesn’t work, ask GPT-4 to fix it (you can copy an error and paste it into GPT-4), just like asking 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 algorithm of the Asteroids game and give function names explaining what each of these functions will do. Don’t write the code yet.” 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 using Code Interpreter from ChatGPT. Using this powerful tool, Kris was able to create a smooth gameplay where the player controls a spaceship using the mouse and shoot asteroids using the left click. The objective of the game is to destroy all asteroids without colliding with them. Additionally, the game offers the ability to use custom textures for the spacecraft and asteroids, which allows the players to personalize their experience game. This achievement demonstrates the enormous potential of the Code Interpreter to simplify and accelerate the development process of games, thus opening new creative opportunities for developers.

The code writes itself, all you have to do is be creative!

The OpenAI Code Interpreter is a breakthrough feature that pushes the boundaries of AI capabilities in game development. He acts like a scientist serving as personal data assistantallowing developers run code, analyze data, create graphs, modify files and perform mathematical operations. ChatGPT Plus subscribers can access this powerful tool, allowing them to write code in Python and manipulate files up to 100 MB (which remains relatively limited for the moment, therefore). The Code Interpreter opens up a new horizon of possibilities, allowing developers to generate statistics, maps, data visualizations, graphs, and even analyze music playlists for your game.

The future of video games? On the one hand in any case, it seems to be the case…

We can see on the networks, others developers who explain how they created/recreated their games via ChatGPT, like Alex Ker who has developed his own Flappy Bird in seven minutes :

The use of AI in game development also opens up exciting perspectives for more immersive experiences. Thanks to AI, the next generation of video games should feature smarter NPCs and an automatic content generation. AI improves different aspects of game development, including creating realistic NPCs, designing more engaging levels, and dynamically generating content game. Thanks to AI, game worlds become more interactive, engaging and personalizedproviding players with unique and fascinating experiences. While challenges remain, the future of AI in gaming is bright, with the promise to push the limits of creativity and improve the overall gaming experience.

There is no doubt that in the future, we should see more and more video game creations, or elements integrated into games, which will be generated by artificial intelligence.

News JVTech

iPhone 13, Switch OLED, AirPods 3… The best high-tech products of 2021


1689146944
#ChatGPT #developer #manages #create #video #game #minutes #future

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.