The Game's File Structure
As you can see, we’ve already created many files for you. The structure of the game has already been laid out, and you will be filling each file with content. So, in order to begin, we must first have at least a basic understanding of what each file does and how they relate to each other.
Next, look at
Game.js. This is the file that essentially represents our game. Within it, the actual game code branches out through
Scene2.js. These scene files are where you’re going to write the majority of your code, and we will go into further details on Phaser scenes a bit later.
Explosion.js are files that create specific objects for our game.
assets folder contains all of the images that our game uses.