Jump to content

Problem Getting Particle Emitter Examples to Load


KamiFightingSpirit
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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 by ivan.popelyshev
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...