Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

You can get around the size limitation by using externally referenced graphics. You use something like

title : jpeg "my.jpg";

This will not render in the editor, but when you compile the game, the jpg file should be in the same folder as the compiled html.

Itch will allow you to upload a zip file for HTML game project that contains the html and the zip file and any subfolders you require. Just select the two files (assuming windows), right click, and "add to zip folder".  You can also reference an external URL in the jpeg section in the graphics section, but not recommended as you'd have to host your own graphics.

Chris

Oh, as far as the scaling issue goes, then show me the a screenshot of the issue please and measure the horizontal pixels of the rendered pixels if you can. It may get scaled in the upload to itch.

I didn't want to go mucking about with external files. I haven't uploaded to itch.io yet. I'll just live with the chunky-looking graphics and hope that users don't complain.

Try content_width = <horz pixels in your image> and snap mode=full_snap. As long as your windows (OS level) scaling is not anything different to 100%, then it should scale the title image perfectly.

Tried that. No difference. Snap doesn't snap. Never has. Title screen image still scales up and down when you move the separator between the editing panel and the playing panel or when playing in windowed mode and you resize the window.

I'll just leave it at the default.