How To Create HTML5 Games with ChatGPT in Minutes

Quintin Del-Vierro Akakpo
2 min readJun 18, 2024
Photo by Sophie Atkinson/Readwrite

AI’s New Frontier: Game Development

From generating intricate images based on any concept you imagine to crafting videos, artificial intelligence has once again demonstrated its potential. The latest discovery is its ability to create HTML5 games quickly and efficiently.

Developing a game traditionally requires significant expertise and experience. However, AI has now proven capable of generating small, interactive HTML5 games in just minutes, even for those without any coding knowledge.

AI artist Pierrick Chavellier revealed this breakthrough on the X platform (formerly Twitter), praising ChatGPT-4o from OpenAI as “insane” for its capabilities.

The Tools Behind AI Game Development

Chavellier didn’t rely solely on ChatGPT; he also used tools like Photoshop, Illustrator, and the AI tool MidJourney to create a functional mini-game. Although the game was brief, it showcased the immense potential for improvement and expansion as AI continues to evolve.

Read: How To Make Money From Home With ChatGPT In 2024

Step-by-Step Guide to Creating an AI HTML5 Game

1. Character Sprites Creation

- Instead of generating sprites from scratch, Chavellier used an external site to download vector images of characters.

- These sprites were then refined and exported in various formats using Illustrator.

2. Generating Game Backgrounds

- Chavellier used MidJourney to create a suitable background by providing a prompt like: “Game asset, 2D Cartoon Style background game scene, forest, forest element, flat, vector.”

CLICK HERE To Read The Full Story

--

--