Comments (11)
@ivanpopelyshev for the health and longevity for pixijs and its plugins I believe it would be really good to have this. I think a lot lof developers will be initially put off by some of these old school javascript paradigms and the hacks you have to apply to get it to work in a modern setup.
from tilemap.
#110 fixes the global PIXI
problem
from tilemap.
This is currently breaking the latest version of pixi-tilemap
from tilemap.
@eranimo please elaborate, whats wrong there? i still cant figure out how to make all those modules
from tilemap.
I think the package needs a bit of love to support the ES6 module system and CommonJS projects.
It is possible by having a correct set-up project and a package.json containing a proper exports
config.
I am currently struggling with this issue as well, and there are many pitfalls regarding that. I might come up with a pull-request to solve that. But I cannot guarantee that old projects still work correctly since I ultimately would deprecate the global PIXI
object.
from tilemap.
we are experimenting with pixi-tilemap, and new pixi.js 5.4 rc1 , im waiting for rc2. When one plugin will be ready - i'll move everything else
previously, when i tried to move to modules, it ended bad. several times. there's also something that is missing that's wasnt possible to do using es6 modules. The whole approach was fucked up because lack of necessary build tools.
How did I unfuck it: I invented "global mixins" approach and it will be posted in 5.4 rc2
from tilemap.
Hm, I've yet to see a mixin solution that brings something good to the table.
Care to share?
from tilemap.
This is the story: https://github.com/pixijs/pixi.js/pulls?q=is%3Apr+global+mixins+
This is one of files: https://github.com/pixijs/pixi.js/blob/dev/packages/mixin-cache-as-bitmap/global.d.ts
from tilemap.
I skimmed the issues and PR's, but I can't see when or how these global mixins are introduced.
Even though it might be better to have this conversation somewhere else.
Anyway, I'll continue working on my fork and come up with a PR as soon as it is ready.
from tilemap.
Basically, we introduce interfaces in global scope, that we implement in PixiJS. That interface can be changed in other modules. To support this perversion and ensure correct generation of docs / types we had to experiment. a lot.
from tilemap.
Sounds interesting. Hopefully, it works out as planned. 👍
I've added my proposal to solve the module compatibility issues as PR, tested it locally with the examples and my current project. It seems to be working without any issues so far.
from tilemap.
Related Issues (20)
- tileAnim does not work for negative offsets HOT 1
- Tiles are reset to original, after x amount of changes HOT 2
- collision
- Update to newer PIXI version HOT 1
- Not working with new `cullable` property from `PIXI 6.3.0`. HOT 4
- Not working since PIXI 6.4.0 HOT 2
- Not compatible with Pixi 7 HOT 9
- Importing pixi tilemap does not work HOT 4
- Missing dependencies
- Texture ID is only set when composite parent is true.
- Request for the updating of rpgmaker.js
- Demos aren't loading
- `Cannot find module '@pixi/tilemap' or its corresponding type declarations` HOT 4
- Position doesn't follow parent, when parent is using isRenderGroup : true HOT 2
- tileWidth and tileHeight doens't seems to work
- Question: Is there a way to use this with `@pixi/spritesheet`? HOT 7
- Cleaning or updating Tilemap is not working without running renderGroup.onChildUpdate `PIXI 8` HOT 2
- `PIXI 8` Tilemap doesn't apply `roundPixels` renderer settings HOT 1
- `PIXI 8` Multiple Tilemap movement interfere eachother on `webgpu` HOT 1
- `PIXI 8` tilemap moves the wrong distance when `app.stage.position` updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilemap.