Articles

Developing Phaser 3 Games Locally

Published Aug 9, 2019Updated Jun 22, 2023
Learn how to develop Phaser 3 games locally on your own computer.

Phaser 3 Done Locally:

Phaser 3, the latest version of Phaser.js, is a game framework built with JavaScript that allows you to create games using HTML, a little bit of CSS, and JavaScript. This article will provide you a video walkthrough for developing games on your local computer with written steps below. So, if you came here because you’ve taken the Game Development with Phaser.JS course and you want to start creating games locally on your own computer, you’ve come to the right place! Below are the written steps for you to get started and there are also videos guides for both Mac and Windows devices:

Related Course

Learn Game Development with Phaser.js

Learn about the HTML5 game development framework that makes writing browser-based games a breeze.Try it for free

Developing a Single Scene Game using Phaser:

  1. We recommend using Visual Studio Code (VSCode) in this tutorial. If you don’t have it and need help install VSCode, you can find a more in-depth tutorial in our article about installing VSCode.

  2. Open VSCode and install the “Live Server” plugin.

  3. Use VSCode to open your game files, in this case, we have a game.js and index.html. If you want the simple game used in the tutorial, here is the download link.

  4. Click the “Go Live” button at the bottom of VSCode to start a server on port 5500. This will also prompt your browser to open a new window/tab that loads your index.html file.

  5. Make changes to your game files and save the file to automatically refresh your HTML page and see the changes you’ve made.

  6. When you’re done with editing your game, click the button that contains the port number of your server (by default it’s 5500) that will shut down the server.

Use the knowledge you’ve accumulated here to level up your own game development skills!

Development for Mac:

Development for Windows:

Codecademy Team

'The Codecademy Team, composed of experienced educators and tech experts, is dedicated to making tech skills accessible to all. We empower learners worldwide with expert-reviewed content that develops and enhances the technical skills needed to advance and succeed in their careers.'

Meet the full team