samme

Results 159 comments of samme

What's the code you used when the animated tiles plugin wouldn't load properly?

`load.scenePlugin()` only works if the `key` is a property of `window` after the plugin script loads. The plugin author has to write it that way, e.g., ```js window.AnimatedTiles = AnimatedTiles;...

I think the problem with different browser animation rates (30Hz, 144Hz, 250Hz) is that Matter still expects a target FPS (default 60) and clamps the delta accordingly (16.6 to 33.3ms...

You can try [Matter Physics deltaMin and deltaMax](https://codepen.io/samme/pen/GRwqzEr) on your device. It looks like the default range (16–33ms) should accommodate 30–60fps from the browser. ![Matter Physics deltaMin and deltaMax](https://github.com/photonstorm/phaser/assets/435681/cb2c5dd2-2e21-4bf2-a202-c659e40cf69c)

I think the error is correct because the actual Sound Manager may be Web Audio, HTML5, or No Audio depending on the device.

I reproduced this with 1 Graphics, 1 Image, and `moveUp()`: https://phaser.io/sandbox/q89fEzzs

> The only one that seems to work correctly is if the angle was originally defined as a number and then setEmitterAngle is given a number. I think this is...

> And fromScene is treated as destroyChild which causes the second destroy to start in the middle of the first one. There's a similar problem with Container, I think.

This can be done with [scale mode FIT (or similar) and scale.setSnap()](https://codepen.io/samme/pen/eYJOyjw). I can't remember if I've requested already, but I would like snap options in the scale config, e.g.,...

I would consider this expected. 🙂 And the alternative seems super complicated.