00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Can load assets with PixiJS and ViteJS

279 Views | 0 Replies
New Topic Respond to this Topic

Hello!

I've started to make a game with ViteJS+PixiJS and sadly PixiJS can't load any assets I use because of bad adress or something like that.


My game is host on NG on /file/alternate/alternate_2_r6.zip, the navigator can load my JS and CSS (with relative link like ./assets/index.js), but my assets trye to be loaded on /file/alternate/tile.png.


Does anyone has a solution about this? How can I say to PixiJS to load into the correct URL? It's very strange because it's work on my website and on Itch.io...


Beginner game dev, I like to discover different engine and some fantasy console!