Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Assets loaded from CSS using url() doesn't resolve correctly.

A topic by Alphageddon created Mar 12, 2025 Views: 80
Viewing posts 1 to 1
(1 edit)

I'm building my game in Vite. When running the build locally, everything works well, but when in Itch, it seems that the asset paths are pointing to one level higher than it should, making the game id disappear from the path. Game: https://andre-lima.itch.io/a-very-tiny-game?secret=tig1N4tKGDjlHgMKtCfVSViE

Here's an example of a font being loaded and failing:

https://html-classic.itch.zone/html/fonts/Whacky_Joe.ttf

All other assets are being loaded correctly and my Vite base url is set to './' already.


Any ideas on why this is happening and how to fix it?

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.