KamiFightingSpirit Posted February 4, 2020 Share Posted February 4, 2020 This is going to sound really dumb so please excuse me being such a noob. I am trying to get the pixi-particle examples to work but can't seem to. What I did: I downloaded and unzipped the following: https://github.com/pixijs/pixi-particles Unzipped it and loaded up the examples folder via the command line with: python -m SimpleHTTPServer 8000 none of the examples are showing anything within http://localhost:8000/ when I navigate to them though. How can I get this working? Browser is showing the following errors: pixi.js:1 Failed to load resource: the server responded with a status of 404 (File not found) pixi-particles.js:1 Failed to load resource: the server responded with a status of 404 (File not found) ParticleExample.js:24 Uncaught ReferenceError: PIXI is not defined at new ParticleExample (ParticleExample.js:24) at explosion.html:25 What I have been trying (many other things too...): I have tried: npm install pixi.js pixi-particles But it doesn't seem to work, I'm not sure if I'm installing in the wrong place or what? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 4, 2020 Share Posted February 4, 2020 (edited) Examples are hosted from `gh-pages` branch of that repo https://github.com/pixijs/pixi-particles/tree/gh-pages. It contains pixi-v4 districution in a "lib" folder. Usually people dont just download stuff - they clone it and switch branches. That means you are not familiar with git enough, right? If you download that branch - your simple http-server approach should work. Just be aware that it contains old version of pixi, its up to you to update it and migrate examples if needed. "PIXI.particles.ParticleContainer" was renamed to just "PIXI.ParticleContainer". Read about more differences at https://github.com/pixijs/pixi.js/wiki/v5-Migration-Guide Edited February 4, 2020 by ivan.popelyshev KamiFightingSpirit 1 Quote Link to comment Share on other sites More sharing options...
KamiFightingSpirit Posted February 4, 2020 Author Share Posted February 4, 2020 (edited) Thanks! I got it to work by changing the local source links to CDNs with the version downgrade. And yes, still pretty new to everything, only picked up coding a few months ago and learning to navigate all the systems. Edited February 4, 2020 by KamiFightingSpirit ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.