Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How do I upload a game with multiple JS files?

A topic by zortazert created Apr 02, 2024 Views: 114 Replies: 2
Viewing posts 1 to 3

I am a noob game developer trying to make HTML5 games with JS and canvas. How do I do this with multiple files? I already uploaded to itch my first game pong which I originally wrote with node as a web server to not get CORS errors. When uploading to itch I had to make all the code in one js file. On my next game flappy bird that I am almost done with I just need to implement restart all the code is really messy because everything is in one file. How can I separate all the code into multiple files and have it work in itch.io?

Moderator

Put all the game files in a zip archive, as explain in the HTML5 Games FAQ.

Ok I will try that out. Thanks for the help.

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