Thank you for the suggestion! I think I might just try the zip export itch.io method if p5.js route doesn’t work out
Thank you, it’s great to have some references to compare to!
Right? So often, I google a problem only to discover that similar problems have been answered, but I’m too inexperienced to grasp what the answer in the replies even means, so I have to wander about searching for so long . But once I figure it out, it seems so obvious that I can’t believe I wasted so much time looking! I’m thankful for the community’s support.
It’s unfortunate that the code cannot be copied directly, but it’s reassuring that it is still feasible with little effort. And don’t worry, you’ve already been a huge help! Thank you very much, I’ll research how p5.js works and hopefully, fully integrate all of the components to the web.
To add more JavaScript files to a sketch.js file in P5.js, you create the Javascript files and then add them in the html file.
e.g., In your case you should create credits.js and pattern.js files hence you will get script below in your html file.
You can also change the name of the sketch file to your preferred name but make sure that is the name you used in your script tag. See the images below.