GPT-4 can generate complex HTML code in seconds. Twitter is currently buzzing with threads on what all one can achieve with OpenAI’s newly launched GPT-4. While there are numerous takes on how one can get the most out of the latest large multimodal language model, a Twitter user named Javi Lopez has created a 3D video game similar to Doom with GPT-4.
In his Twitter thread, Lopez explained how he created a basic 3D video game from scratch using code generated by GPT-4. Here is a look at how it works.
According to Lopez, while you can create a 3D video game with just GPT-4, it still needs a lot of work to make it a fully working video game. This essentially means that while the game he created has a Doom-like maze, it doesn’t offer shooting capabilities or enemies.
Create a basic 3D game prototype like Doom using GPT-4.
Let GPT do all the maths, raycasting and hard work!
🧵 A thread pic.twitter.com/IZgSlj4QTO
— Javi Lopez ⛩️ (@javilopen) March 15, 2023
Do note that, GPT-4 is only available for ChatGPT Plus subscribers. Generating a code for a 3D video game is as simple as asking GPT-4 to write one in plain simple words — “write an HTML program to create a doom-like video game”
The code generated by GPT-4 can be run on an HTML programming tool. You can ask GPT to create a similar code for a 3D video game, and the same will be generated in seconds. Next, you can ask GPT-4 to add colours to the code and you will have your own 3D video game up and running in no time.
If you don’t understand any of the steps involved in it? You can always go back to GPT-4 and ask specific questions to get more clarity. According to the author, GPT-4 can generate complex code, which would have taken days, if created by a human.