-
Notifications
You must be signed in to change notification settings - Fork 915
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
⚙️[WIP] Adding Effects Manager in runtime. #2901
Conversation
Thanks for reopening the PR! :)
|
Nice job on this long and complex feature!
2021-08-13.11-44-03.mp4 |
I've rebased this on master (but not merged master on this, to avoid extra commits), so please discard your local branch and fetch it again from GitHub if you want to continue working on it ;) |
I've asked on the PixiJS filters repo to see if it's normal for the Twist/Radial Blur/Zoom Blur to have a fixed/strange positioning of the effect according to the object position on the screen: pixijs/filters#304 :) |
0a9c7e2
to
20de121
Compare
@4ian I've tried writing some tests, but it turned out that the effects aren't registered properly while running tests (maybe because the files related to effects are added only after exporting the game?). The tests simply fail, after logging this: |
More or less yes! There is no effects because there are no built-in in the game engine (it's only part of an extension) and none are imported in karma.conf.js (which is listing all the files to import for the tests - like what an exported game would do). |
…p to include effect files
…changed getElapsedTime method.
Tests are there! :) |
87893f8
to
1122976
Compare
* Update method names to make this very obvious * Also fix wrong parameters
Finished by fixing the timing of the update of object effects: it's now done before the rendering (so effects get a chance to update), I've renamed the method Should be good to go now! :) |
Reopened PR #2736
Context: see issue #2640 and this Trello card.
TODO:
Fix issue with offsetsBypassed for now because of Pixi issues