Jump to content

Webpack || playable ad || json


soop
 Share

Recommended Posts

Hello everyone, I'm new to Pixi.js!
I faced a problem - need to get one html file at the output. I use webpack for assembly. I inline scripts, convert images to base64, but I don’t know what to do with atlas.json. Help me please

Link to comment
Share on other sites

Hello!

That's not a easy task for newbie. Prepare for pain. We dont have tutorials about that, and its advanced feature.

Here's a basic project: https://github.com/eXponenta/pixi5-playables-boilerplate

Yes, it has several difficult things, like its own base83 encoding somewhere...

Hope that code helps. Otherwise you'll have to ask creator of resource-loader how to inline json files. I think that was answered too many times in both pixijs repo and in resource-loader

You should use search on closed issues.

https://github.com/pixijs/pixi.js/issues

https://github.com/englercj/resource-loader/tree/release/3.x

Link to comment
Share on other sites

  • 1 year later...

hey @soop I wonder if you have managed to make the bundler? Right now, I am also trying to make it with webpack. I managed to the base64 part, but I still don't get favorable result. Could you please share your work? Or if you are stuck maybe we can finish it together :)

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