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

Massùod Hemmat
7 min readJul 12, 2023
A Screenshot of the Game’s Interface

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:

  1. Gain access to GPT-4.
  2. Enable the ‘Code Interpreter’ model within ChatGPT. This can be done by navigating to Settings > Beta Features and activating ‘Code Interpreter’.
  3. Register an account on the OpenProcessing.org website.
  4. 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.
  5. 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…

--

--

Massùod Hemmat
Massùod Hemmat

Written by Massùod Hemmat

Writer (Thinker), Infopreneur, CEO, Web/Tech Cons., IR/AI Enthusiast, Polymath, & Global citizen — I write because it isn’t there. LinkedIn.com/in/mhemmat

No responses yet