Member-only story
How I Developed My First Computer Video Game Using GPT-4’s Code Interpreter Model
Explore Game and App Creation with GPT-4’s Code Interpreter
7 min readJul 12, 2023
If you’re eager to get started with the game immediately, Click Here. Keep in mind that the space-bar functions as the shooting control, and the arrow keys facilitate movement. These controls are applicable when playing the game on a computer browser.
If you’re interested in constructing a replica of this game, or other games at no cost using GPT-4’s Code Interpreter and the OpenProcessing.org platform, here’s a step-by-step guide on how to proceed:
Step-by-step Process:
- Gain access to GPT-4.
- Enable the ‘Code Interpreter’ model within ChatGPT. This can be done by navigating to Settings > Beta Features and activating ‘Code Interpreter’.
- Register an account on the OpenProcessing.org website.
- Initiate a sketch on the OpenProcessing.org platform and make sure to save it. Do not include the default code that appears initially. Remove it.
- Go back to GPT-4 and type “Use Code Interpreter”, and follow up with this prompt: Prompt: “Could you generate a p5.js code for an Asteroids game where the spaceship is controlled using the…