Coder Social home page Coder Social logo

Comments (6)

pavels avatar pavels commented on June 12, 2024

Just a note

3.55.2 is OK
3.60.0 is completely broken (the sprite disappears)
3.70.0 exhibits described bug

from phaser.

orcomarcio avatar orcomarcio commented on June 12, 2024

I have a very similar bug.

If I apply a bitmapMask and/or postFx to a container and then resize the game (and it returns to normal if i put the resolution back to what it was when I added these effects).

3.6: container disappears or gets stretched vertically (the new resolution just has a bigger height, i guess the shader references screen % for coords). It also stops "updating", meaning even the stretched image is frozen in time.
3.7 / 3.8: works with normal sprites. SpineObjects instead disappear for some reason.

EDIT: in 3.7 / 3.8 SpineObjects don't disappear, the whole container disappears if there's at least one spine object visible

from phaser.

woshisheji avatar woshisheji commented on June 12, 2024

Very bad experience, I just added a mask. There was no problem at all in 3.55.2, but in 3.8.01, it was very bad. The content inside the mask is all blurred. When the mask is blocked, it is very normal. I hope to receive timely updates and handling.

list.mask = new Phaser.Display.Masks.BitmapMask(H5object, rect);

from phaser.

woshisheji avatar woshisheji commented on June 12, 2024

123
132

list.mask = new Phaser.Display.Masks.BitmapMask(H5object, rect);

from phaser.

pavels avatar pavels commented on June 12, 2024

There is a workaround for this - start the game with correct or larger size in config

It happens when you resize the game from small to large, so if it is possible, try to start the game closest to target size or larger and it should be fine

from phaser.

woshisheji avatar woshisheji commented on June 12, 2024

有一个解决方法 - 在配置中以正确或更大的尺寸开始游戏

当您将游戏大小从小到大时会发生这种情况,因此如果可能的话,请尝试启动最接近目标大小或更大的游戏,这应该没问题

尝试过,依旧会模糊的。不过没有模糊那么多。

from phaser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.