Phaser
Phaser is a free, open-source library for 2D browser games. It draws the game through WebGL or Canvas and works on a computer and in a phone's browser.
Published
The library takes care of what you don’t want to write yourself: drawing, movement, collisions and controls. AI chats know it well, so a Phaser game often works in its first version. For someone making a first game with AI, it’s a safe choice of library.
How does it work?
- The game file loads Phaser from the internet with one
<script>tag, for example from jsDelivr. - The game code describes scenes: the start screen, the gameplay and the end of a round.
- Phaser draws the game in the browser through WebGL or Canvas.
- The same game works on a computer and in a phone’s browser.
Phaser 3 or Phaser 4?
Phaser 4 came out on 10 April 2026 and has a new rendering engine. I made my game SlipZone with Phaser 3: in the prompt for the first version I asked for “the Phaser 3 library loaded from a CDN”, and free ChatGPT returned a working game. Put the version in your prompt and stick to it in every round, so the chat doesn’t mix code from 2 versions. The prompts from this game are in the article on how to make a browser game with AI.
What to watch out for
- A library from the internet. A game that loads Phaser from the web won’t work without the internet. It also won’t get onto the Poki portal, which blocks a game’s requests to other addresses. For apps and portals, save the library in the project files.
- The version in the link. The library address contains a version number. If the chat changes it to another one in a later round, the game may stop working. Check this line after every change.
- 3D games. Phaser is for 2D games. Leave a 3D world for later, not for your first game.
I describe how to make a first playable version with the Phaser library in 30 minutes in the e-book “Make a Game with AI in a Weekend”.
Questions and answers
Is Phaser free?
Yes. Phaser is open source (MIT), so you can use it in a paid game or in an app in a store too.
Do I need to know how to code to use Phaser?
Not for a simple game from a chat. The AI writes the code from your prompts, and you check whether the game works and describe bugs the way a player sees them.
See also
Articles that use this term

Founder of FKDRIVE and software developer. Builds and maintains web systems and automation.
Let us talk about your project.
Thirty minutes online about one or two processes that eat the most time. If you would rather write, the contact form is just as good a route.
Book 30 minutes