Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'Cull' of undefined #20

Open
Vardan92 opened this issue Mar 31, 2021 · 3 comments
Open

Cannot read property 'Cull' of undefined #20

Vardan92 opened this issue Mar 31, 2021 · 3 comments

Comments

@Vardan92
Copy link

Vardan92 commented Mar 31, 2021

I followed the Installation example:
`

<script src="/directory-to-file/pixi.js"></script> <script src="/directory-to-file/pixi-cull.min.js"></script> <script> var SimpleCull = new PIXI.extras.Cull.Simple(); </script>

`

and I'm getting an error: Cannot read property 'Cull' of undefined

@davidfig
Copy link
Collaborator

davidfig commented Apr 2, 2021

See #16. I need to redo the way pixi-cull is bundled. I'll try to get to it this week. It does work if using require or import.

@Vardan92
Copy link
Author

Vardan92 commented Apr 2, 2021

See #16. I need to redo the way pixi-cull is bundled. I'll try to get to it this week. It does work if using require or import.

Appreciate it! If it's not asking for much, can you also include how you did it with bundler? Or a link to a tutorial to it? It will help with less advance programmers like myself. Thank you!

@davidfig
Copy link
Collaborator

davidfig commented Apr 8, 2021

I updated the projected to v2.0.1. It is now accessible via the window.Cull variable. See the README.md for more information.

The easiest tool for bundling (I found) is parcel: https://parceljs.org/. It's almost magical. The tutorials are pretty good, and once you get it, you'll have all the packages at npmjs.com available with just an import statement. Good luck, and let me know if you run into any problems with pixi-cull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants