Jump to content

Working w/ pixi particles.. help please?


ClusterAtlas
 Share

Recommended Posts

I'm curious, does pixi-particles really require use of TypeScript?

https://github.com/pixijs/pixi-particles

Compared to all pixi-related libraries (like pixi-sound, tween, etc), so far this one gave me the most headache so far:

- doesn't work with regular require

- f's up w/ browserify & jspm

Thanks for any answers ^_^ 

Edit: basically my question is, is there a way to use it without using TypeScript? 

Link to comment
Share on other sites

Quote

I'm curious, does pixi-particles really require use of TypeScript?

There is no such thing as a library that requires TypeScript, not sure what would give you that impression.

Quote

doesn't work with regular require

In what way does it not work? Have you tried posting an issue on the repo?

Quote

f's up w/ browserify & jspm

In what way does it not work? Have you tried posting an issue on the repo?

Quote

Edit: basically my question is, is there a way to use it without using TypeScript? 

TypeScript compiles to JS, no library *requires* TypeScript. Even the main field points to the built file.

Link to comment
Share on other sites

Thanks Ivan, recently I've just found same issues I'm encountering in the project's repo: 

https://github.com/pixijs/pixi-particles/issues/11

https://github.com/pixijs/pixi-particles/issues/41

Seems like it only works in some namespace like the cloudkid library/framework (screenshots attached).. any ideas how can I work it out?

Regarding the TypeScript though xerver, well lol I thought it's something required because its GitHub Readme only have instructions for TypeScript (screenshot attached below), unlike the pixi-sound library where you can just require then it already works ^_^

I'm currently checking out the examples now, will update if I ever get it workinggg

ee.png

er.png

ew.png

eq.png

Link to comment
Share on other sites

Update guys: finally got it working!

Realized that since those guys mentioned that it's already browserified, I came to the conclusion that it's something that I shall just include normally in the html file w/ the <script> tag, hence, excluding it (the pixi-particles js / min.js) from the bundling of other libraries.

<3 

 

z1.png

z2.png

z3.png

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...