My game works fine here on the Pico 8 BBS (on desktop and mobile) but…
I recently uploaded it to itch.io, making sure to follow the instructions in the Pico 8 manual (https://www.lexaloffle.com/pico8_manual.txt):
If you would like to upload your exported cartridge to itch.io as playable html: 1. From inside PICO-8: EXPORT -F FOO.HTML 2. Create a new project from your itch dashboard. 3. Zip up the folder and upload it (set "This file will be played in the browser") 4. Embed in page, with a size of 750px x 640px. 5. Set "Mobile Friendly" on (default orientation) and "Automatically start on page load" on. // no need for the fullscreen button as the default PICO-8 template has its own. 6. Set the background (BG2) to something dark (e.g. #232323) and the text to something light.
But for some reason, on the itch.io mobile version, the controls 1) take a long 5 seconds or so to appear atop the game and 2) don't work.
Note: I'm using Safari for iOS.
Thanks in advance for any ideas of what I might be doing wrong.
Thanks all who provided feedback while this was a work in progress!
Enjoy and let me know if you'd like to see further updates or more levels.
Use the Nerf Blaster to take down mutant fruit flies!
Defend against killer drones with the Laser Gun!
Most of all, don't forget to water the plants!
I'm looking for a way to control SFX volume from within the code.
For example, as my main character approaches an audio source, it should become louder.
Is this possible?
Thanks in advance for any leads!
I've been working on this game based on my webcomic "B-Lab."
Pico 8 has been such a joy to learn!
My game (which uses includes) runs perfectly from within the Pico 8 environment. It also runs perfectly when I export it without using includes (that is, when I pre-merge all the files together and then export).
But when I export it with includes (either to a standalone .bin or to an html page) I get the following error when I try to run the exported version:
could not #include file: init_functions.p8 stopped. press button to exit
init_functions.p8 is one of the files I'm including from the main file.
Here is the code from the main program:
pico-8 cartridge // http://www.pico-8.com version 18 __lua__ #include init_functions.p8 #include main_controllers.p8 #include start_functions.p8 #include game_functions.p8 #include ugene_functions.p8 #include actor_functions.p8 #include ui_functions.p8 #include common_functions.p8 #include gameover_functions.p8 __gfx__ (and all the graphics data is here)
and here is the first few lines from the first include, which I'm showing here in case it has something to do with the header portion?
pico-8 cartridge // http://www.pico-8.com version 18 __lua__ function _init() mode="start" sash=0 offscreen=128 (etc)
Am I doing something wrong? Again I want to emphasize that everything works perfectly when running this from within Pico 8, just not when I export it.
I've searched for an answer to why this might be happening, to no avail.
Thanks for any light anyone could shine on this!