Is it possible to run two or more Phaser3 games on the same web page?
I created two games. Each of them works perfectly on its own web page. I tried to run them on the same web page (I need that for my website) but failed ((
Each game has its own js-file. Only one game works the js-file of which is the last loaded. Here's the order of loading of the scripts:
<script src="phaser3.min.js"></script>
<script src="game1.js"></script>
<script src="game2.js"></script>
In this case, game2 works but game1 doesn't. What's interesting, there are no errors in a browser console.
I tried to solve this problem in different ways but unsuccessfully. Did anyone try to run two or more Phaser3 games on the same web page? How to do that? Is it possible anyway?