These are chat archives for pixijs/pixi.js

25th
Dec 2017
Brenwell
@brenwell
Dec 25 2017 09:07
Can download it from that dudes gutub page. https://github.com/saschagehlich/pixi.js/tree/feature/node-js?files=1
*Github
mcpll
@mcpll
Dec 25 2017 09:57
@brenwell thx for your answer, but i need the node modules... and if i run npm install pixi.js i download the original one
Brenwell
@brenwell
Dec 25 2017 09:58
Can't you fork his fork and then clone?
mcpll
@mcpll
Dec 25 2017 09:59
mm caon you explain? i don't undestand
thx
Brenwell
@brenwell
Dec 25 2017 10:00
I am my phone so I can't see the desktop website
But of you go to that URL - you will see his fork for pixijs
Somewhere in the top right is the option to "fork" that.
mcpll
@mcpll
Dec 25 2017 10:01
ok
Brenwell
@brenwell
Dec 25 2017 10:01
This will create a copy of his pixijs version on you github account
mcpll
@mcpll
Dec 25 2017 10:02
ok
Brenwell
@brenwell
Dec 25 2017 10:02
That you can do a 'git clone your/pixi/version/repo/url
You will need to change to the feature-node-js branch
mcpll
@mcpll
Dec 25 2017 10:03
ok and then i replece into node_modules?
of my project?
Brenwell
@brenwell
Dec 25 2017 10:03
Then on your projects you can "link" to your local pixijs
In pixijs directory run 'npm link'
In your project dir run 'npm link pixi.js'
mcpll
@mcpll
Dec 25 2017 10:05
and set my repo?
Brenwell
@brenwell
Dec 25 2017 10:06
I am not sure what that means. But running the first link command creates a symlink for the local pixijs
And the second command tells an individual project to use the symlink version rather then the one from the remote npm repo
mcpll
@mcpll
Dec 25 2017 10:08
so:
1) clone pixi.js in my node_modules
2) run npm link into pixijs folder under node_modules
3) run npm link pixi.js in my root dir
Brenwell
@brenwell
Dec 25 2017 10:09
No
Step 2 and 3 are correct
But step 1. You should clone to a different folder. For example I keep all my projects in /username/node
So you should have something like
mcpll
@mcpll
Dec 25 2017 10:10
ok
Brenwell
@brenwell
Dec 25 2017 10:10
/username/node/pixi.js
And
/username/node/myproject
mcpll
@mcpll
Dec 25 2017 10:10
and then run npm link from this folder?
Brenwell
@brenwell
Dec 25 2017 10:11
Yes
mcpll
@mcpll
Dec 25 2017 10:11
ok clear
thx
Brenwell
@brenwell
Dec 25 2017 10:11
This links the pixi into the projects node-modules
mcpll
@mcpll
Dec 25 2017 10:11
and then i run npm install pixi.js
Brenwell
@brenwell
Dec 25 2017 10:15
You may need to
You also may need to build the pixi version he made
mcpll
@mcpll
Dec 25 2017 10:17
before run install?
so first i create the build then link and then install
maybe
Brenwell
@brenwell
Dec 25 2017 10:23
Makes no difference
Now it's linked you make changes to the pixi report as much as you want and they will be reflected in any linked projects
*repo
mcpll
@mcpll
Dec 25 2017 10:24
ok
Brenwell
@brenwell
Dec 25 2017 10:26
If you need more info there will be a tonne of information about using 'npm link on the web
mcpll
@mcpll
Dec 25 2017 10:40
thx @brenwell
Brenwell
@brenwell
Dec 25 2017 21:47
I am not sure what you are trying to do from that post but if you have questions about was is expensive and what not in pixijs read this
And if you are doing tiledsprites check Pixi.extras.tiledSprite
scarejar
@scarejar
Dec 25 2017 22:10
basically I have a container that's filled with sprites for every layer of my map; and I was wondering if there was a better way to manage layers because drawing what is visible relative to the player would require going though 5 pixi containers. hmmm, I guess I'll implement it and see if any problems arise
Ivan Popelyshev
@ivanpopelyshev
Dec 25 2017 22:50
pixi-tilemap
@scarejar