What Phaser JS file should I import to HTML to show de game?

What is the src of the script element to put on the page?

I want the same JS for all games.


<script src="https://cdn.jsdelivr.net/npm/phaser@3.54.0/dist/phaser.js"></script>

will work.

1 Like

Or download it from http://phaser.io/download, copy the phaser.min.js to your project folder and add this to your HTML:

<script src="phaser.min.js"></script>

It will do the trick.