ChatGPT took the world by storm two years back as the concept of an “AI companion” like Jarvis from Iron Man wasn’t a sci-fi gimmick anymore. You could ask it to proofread your applications, tell you random facts, or verify the information you’re looking for. That said, it did have its issues, and you’d have to pay for the full version for up-to-date information. If you’re wondering if it’s worth it in 2024, we’ve got you covered with our ChatGPT review.
Since then, various iterations of ChatGPT have been released, improving its ability to understand complex tasks and execute instructions more effectively. The new o1 preview follows the same concept. As OpenAI put it in their o1 preview blog post, “We’ve developed a new series of AI models designed to spend more time thinking before they respond. They can reason through complex tasks and solve harder problems than previous models in science, coding, and math.”
Game development made easier with o1 preview
We recently covered OpenAI’s demonstration of 2D game creation in the o1 model, but now, one user online has also shown the AI’s capabilities in a 3D environment.
@kimmonismus on X made a post in which instructions were given to o1 preview to create a 3D game.
This is your challenge: Strictly using HTML in a way I can copy paste, create a 3D game level. For now keep it simple. Have it be a corridor maze game, where you go through an infinite randomly generating 3d corridor using WASD.
Following this, the code was generated, and the instructions on how to run it were also given. Here are the instructions:
- Copy the entire code above.
- Paste it into a new text file and save it with an “.html” extension (e.g., 3d_room_game.html).
- Open the file directly in a modern web browser.
- Click on the window to lock the pointer and start the game.
- Use the WASD or arrow keys to move around the room.
- Move the mouse to look around.
- Press the spacebar to jump.
- Left-click the mouse to shoot projectiles.
At the start of the video, the game was shown to be fully running as intended. This opens up more possibilities to bring your idea to life, but it’ll most likely cause a few problems; professional devs will feel threatened as AI advances to solve more complex problems. On the bright side, we see this as more of a useful prototyping exercise than a complete solution.
The o1 preview didn’t follow the rules completely
It would appear that the OpenAI o1-preview didn’t follow the rules exactly to the beat. As a more knowledgeable programmer on Reddit pointed out, the game logic is instead written in JavaScript, as strictly using HTML “doesn’t make sense for this kind of project”. Either why, the AI figured it out.