Sign in to follow this  
AntoniaChimp

Playable Ads with Pixi Js

Recommended Posts

Hey! I was wondering if Pixi JS is a good engine to create Playable Ads!

For a playable ad I need a single html file with embedded assets and inline javascript. Is there a possibility to do it in Pixi or
is there a simple solution in the internet to do it after I created the playable in Pixi?

Thanks for your help !

Share this post


Link to post
Share on other sites
1 hour ago, ivan.popelyshev said:

Actually, it can be done without loader hacks, just look at Spritesheet class for atlas parsing, and for all the examples in spine where json/atlas/png files are pre-loaded.

Okey thanks for pointing that out ! I am new to Pixi.js so I hope I can understand how to achieve a one singled file.

Share this post


Link to post
Share on other sites

Okey thanks for pointing that out ! I am new to Pixi.js so I hope I can understand how to achieve a one singled file.

I'm afraid that is not newbie material. Go through https://github.com/kittykatattack/learningPixi first, and look at our examples at https://pixijs.io/examples/

Try to make simple game, then try to supply all resources in one file. Bundling stuff is difficult at the moment, one moment it works, and then suddenly doesnt. When you do that, both webpack and PixiJS have to be your friends already, otherwise when something doesnt work you'll blame it on stupid pixi.

Share this post


Link to post
Share on other sites
19 hours ago, ivan.popelyshev said:

Okey thanks for pointing that out ! I am new to Pixi.js so I hope I can understand how to achieve a one singled file.

I'm afraid that is not newbie material. Go through https://github.com/kittykatattack/learningPixi first, and look at our examples at https://pixijs.io/examples/

Try to make simple game, then try to supply all resources in one file. Bundling stuff is difficult at the moment, one moment it works, and then suddenly doesnt. When you do that, both webpack and PixiJS have to be your friends already, otherwise when something doesnt work you'll blame it on stupid pixi.

What if I basecode64 every image and minify the javascript on my own. so that would make a single html file. but then I dont know how to integrate pixi correctly. Using <script src="pixi.min.js"></script> gives me errors, so I probably have to inline it as well?

Share this post


Link to post
Share on other sites
On 4/25/2019 at 1:13 PM, ivan.popelyshev said:

We are working on full example for playable ads with hacks for pixi loader that allow to bundle everything including Spine models into one file . You can either wait 2-4 weeks or do it yourself.

Hey ! Whats the status on that ? I finished my project in pixi and my big problem now is how to convert in into 1 single html file. I read that its possible with webpack but I am not able to make it work.

And I am using a spritesheet with  using the json file, so I am not sure how to solve that with the pixi loader.

Share this post


Link to post
Share on other sites

I am getting the following error when running HTML in release?

Failed to load resource: net::ERR_FILE_NOT_FOUND
bundle.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
index.html:45 Uncaught ReferenceError: App is not defined
    at window.onload (index.html:45)

Share this post


Link to post
Share on other sites
5 hours ago, jagannadha.sagar said:

I am getting the following error when running HTML in release?

Failed to load resource: net::ERR_FILE_NOT_FOUND
bundle.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
index.html:45 Uncaught ReferenceError: App is not defined
    at window.onload (index.html:45)

Hello!

Unfortunately, my telepathy doesn't work on your error. I've got nothing.

"i build somehow, i dont know how, and it fails in the release in a random ad network " - that's expected result.

Playable ads magic doesnt work by default, it has too many hacks. Please specify all your conditions, then I can poke author to look in this thread.

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.