Open PesadeloDoEspantalho opened 5 years ago
Why the initialization need application?
Create a world container
var world = PIXI.shadows.init(app, world);
This is complicate to add in RPG Maker Mv...
Apologies for the late response, and indeed let's say this system isn't perfect... But as you can see, the init method doesn't do an awful lot, you can easily do this manually: https://github.com/TarVK/pixi-shadows/blob/master/src/shadows/index.js The container setup call is the important thing to not forget though, because that's what will actually tell the filter what sprites are meant to be used as a caster and such. The application setup call isn't very important, that just makes sure that the filter's update method is called each frame.
But yes, this system definitely isn't perfect, but hopefully it can form a basis for what you want in your project. In general I think you will have to look at my source code a bit in order to use it, unless you want to do something really simple like in my examples. Let me know if you have more questions.
Hello, I'm implemented pixi-lights in RPG Maker Mv, Now, I'm want to implement pixi-shadows too, but these files.js, Isn't compatible...
Some body to help me??