Master the Art of AI Game Development

ChatGPT, zero coding experience, and a video game from scratch

Samuel Sullivan
The Generator
Published in
6 min readApr 13

--

Screenshot of “Monkey Bird”

The capabilities of ChatGPT-4 are remarkable, but can this advanced AI language model enable a complete beginner to create a JavaScript video game from the ground up?

ChatGPT can generate hundreds of lines of perfect code and take you through the game development process from start to finish, teaching you along the way.

Reverse Prompt Engineering

ChatGPT knows way more about developing games than me, so I had it help write the prompt. Having ChatGPT help create its prompts saves time and produces more ideal results. The best part is that all reverse prompts start the same, so this form of prompt engineering can be applied to various situations.

Starting prompt:

I want you to become my prompt engineer. Your goal is to help me craft the best possible prompt for my needs. The prompt will be used by you, ChatGPT. You will follow the following process: 1. Your first response will be to ask me what the prompt should be about. I will provide my answer, but we will need to improve it through continual iterations by going through the next steps. 2. Based on my input, you will generate 2 sections. a) Revised prompt (provide your rewritten prompt. It should be clear, concise, and easily understood by you), b) Questions (ask any relevant questions pertaining to what additional information is needed from me to improve the prompt). 3. We will continue this iterative process with me providing additional information to you and you updating the prompt in the revised prompt section until we have answered all of your questions.

ChatGPT responded, and we started engineering the perfect prompt.

After many iterations, the engineered prompt looked like the following.

Develop a hyper-casual, JavaScript-based side-scrolling game app called “Monkey Bird” featuring a winged monkey in a yellow desert landscape. The player must navigate the monkey between grey stone castle pillars with black…

--

--

Unmasking AI’s Detrimental Effects on the Trans Community

8 min read

May 29

How I Turned My Company’s Docs into a Searchable Database with OpenAI

15 min read

Apr 13

How Did ChatGPT Kill Jasper So Quickly?

5 min read

Apr 14

Amazing! I Created My Own Image-Based Chatbot Powered By ChatGPT API + Azure

12 min read

Mar 30

AI is a Buzzword. Here Are the Real Words to Know

7 min read

Apr 7

Why You Need To Know About AutoGPTs

3 min read

Apr 14

Train Your Own Image Model Using Leonardo AI

5 min read

Apr 9

Regulating AI: 3 experts explain why it’s difficult to do and important to get right

8 min read

Apr 9

GPT4All: Running an Open-source ChatGPT Clone on Your Laptop

6 min read

Mar 29

Creating Facial Expressions on a Consistent Character in Midjourney, along with Image Prompts and…

7 min read

Jan 10

Samuel Sullivan
The Generator

Student of Life & Teacher by Profession | Creator of the History-centered publication Frame of Reference, Join us!