phaser
phaser copied to clipboard
Phaser3 crashes on Android (Google Chrome) when using createLayer (Tilemap)
Version
-
Phaser Version: 3.70.0
-
Operating system: Android
-
Browser: Google Chrome (any recent update)
Description
Hi, I really love using Phaser. I want to report that I'm having a very strange issue. I made a game using Phaser3 and it seems to work fine in my laptop (Chrome, and Firefox) but when I try to run the game on my Android device, the game starts loading fine but suddenly the browser returns the error: Something went wrong while displaying this webpage.
I'm using Google Chrome on my Android device. I noticed that this error happens in any Android mobile with Google Chrome.
The bug seems to happen when using createLayer
function. Phaser3 docs says: Prior to v3.50.0 this method was called createDynamicLayer.
I tried with a downgrade and my same code works using Phaser 3.24.1
and using createDynamicLayer
.
Example Test Code
Here's my full source code: https://github.com/luckyr13/labyrinth-game/
And these are the lines that I think are causing the bug: https://github.com/luckyr13/labyrinth-game/blob/main/src/labyrinth/scenes/levels/level.ts#L711
Additional Information
You can try the game here: https://labyrinth-bgd.pages.dev/
The game should work fine in a laptop or desktop but stops working when running on Android + Google Chrome
This is the error I'm getting:
I think that probably something changed between 3.24.1 and 3.50.0, so my guess is that the bug was introduced somewhere on that point.
Thanks in advance!