Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

You don't necessarily need to base64 graphics. You can reference an external file. I'll put this in the cookbook tonight ...

Essentially it's like this

graphics {
  // The png file will be read from the same path as the game html file
   blah : png "mypngfile.png";
}

The catch is that it's not possible to test it (currently) using relative paths in the web based editor. You need to compile it and run it from the same base folder as the assets to see the images in-game. When you upload to itch, you can upload a zipfile containing your html and all assets, and it will just work. This can be a nice approach for games with larger files, or with a lot of mp3 sound files.

Ooh, that's good to know. I was thinking about including an original Adventuron adventure as an Easter egg in a chm file. Having the images as separate files is more efficient for that.