We created a new project and added a GameScene in Part 1. Now we will create platforms and a player character using modern JavaScript. We also apply the DRY or Don't Repeat Yourself principle to string literals.
Games can be some of the most complicated types of software you can create. And the most fun.
It helps to use modern best practices to avoid messy bugs or more easily fix ones that come up.
Doing so saves you time and headaches. Most importantly it will help you make a better game.
In this article, we will show you how to create games in Phaser 3 using modern JavaScript and best practices.
If you want to start making games with Phaser3 and skip having to figure out how to setup a local web server then this article is for you.
Maybe you are new to making games.
Maybe you are new to web development.
Or you just want to get started quickly because you have other things to do.
Your best solution is to use Parcel: a blazing fast, zero-configuration web application bundler.