phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.35k stars 491 forks source link

When setting texture priorities, sprites that should not have textures get them anyway #232

Open okaybenji opened 7 years ago

okaybenji commented 7 years ago

This Issue is about

I don't believe this is the expected behavior, because if you don't set the texture priority, the sprite will be textureless.

samme commented 7 years ago

Adding __default to the setTexturePriority list seems to "fix" the example — unless the second sprite's key is also __default.

The problem seems to be that prioritized textures get drawn onto sprites where they don't belong, same as #231.

samme commented 7 years ago

https://codepen.io/samme/pen/GEQmOy

samme commented 4 years ago

Appears fixed by #641

https://codepen.io/samme/pen/JjoeGaW