-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A list of bugs & improvements #525
Comments
The final phrase is key. Those were your specific needs. It doesn't mean they apply to everyone. |
@photonstorm Sure, I never said this is the way to go. This is just a list of suggestions & bugs I found while using phaser, which I thought might be worth sharing, since some of them are simple improvements without drawbacks. |
Which is fair enough, but only one thing listed could actually be considered a bug (the image smoothing one), the rest were tweaks you made for your specific requirements because they were features (that we built-in on purpose) that you didn't need. A lot of features in v2 were added with the 'common baseline' in mind, yet as soon as developers diverge from that they have to start poking around like you did and overriding internal functions to change behaviors. It's not ideal, but it is what it is. It's also why we rebuilt v3 from scratch to be modular, to avoid most of this. Even then we still have to make some assumptions, they're just a lot less intrusive from the get-go. |
You could make a PR for this.
What changes did you make there?
We could add that in v2.11.0. I don't think I've seen unwanted antialiasing in CANVAS mode myself, though.
We could change that v2.11.0, with fair warning. |
I've been using phaser for a more or less bigger project, and there have been a number of issues which I would like to address and which have bugged me:
Text.setText()
does not check if the text is already the same (when passing immediate). This causes huge performance problems. I had to pass immediate since otherwise the bounds would get computed too late, and thus the text would "jump" for one frame - I did override the method to check for the same text firstgame.renderer.context.imageSmoothingEnabled = false
(+vendor prefixes), phaser does not seem do thatAnd one which really annoyed me:
game.make.sprite
,game.make.image
, etc. all create the element without parenting it,however,
game.make.group
will parent it togame.world
if not passing null as parent.This caused elements to be visible, but not recieving proper events for example. If I don't specify a parent, I would really expect that the element is not parented then. Figuring this out costed me a lot of time.
All in all, I am a bit disappointed from the engine. Having worked with other engines, I had expected much more from such a big engine. I had to heavily modify it to make it fit to my needs.
The text was updated successfully, but these errors were encountered: