In this part, we will be setup a basic environment for tinkering with Phaser 3.
Second, create a directory to house our project. The directory should be made in a location where the web server you installed can serve from. For example, if I’m using XAMPP or MAMP, I would create a folder in the htdocs directory.
Grabbing the Phaser Script
Third, go to the Phaser 3 GitHub repository. Click the “dist” folder. We can pick one of two files to download: phaser.js, or phaser.min.js. The difference is that phaser.js contains a uncompressed version of the Phaser framework. This is useful for contributing to the project, and for checking implementation details. The file phaser.min.js is compressed and is meant for distributing your game. Either file will work for our purposes. To download a file, simply click on it and click “Download” or “Raw.” After that, right click the page with the code and click “Save Page As.” Save the file into the project directory we made.
Adding Initial Files and Folders
Ready to Tinker with Phaser 3
Everything we need is setup and ready to go for our Phaser 3 project! Stay tuned for part two. If you like what you’ve read so far, consider subscribing to our newsletter. Our newsletter brings you the latest news regarding our tutorials and courses.Tags: Phaser 3
Categorised in: Phaser 3 Basics
This post was written by Jared York