Log In  


I've seen a few Pico-8 games added to Itch.io as HTML games (basically all of these: https://itch.io/games/tag-pico-8) , and I'd love to know how to do that. If anyone can help me figure it out, I'd really appreciate it!



Here's link to Celeste's cart:

https://www.lexaloffle.com/bbs/widget.php?pid=11724&cat=7

pid seems to be cart's number (correct me if I'm wrong here) and cat I dunno, but it seems to need to be there and have that value.


Celeste uses an iframe (similar to embedding youtube videos):

<iframe width="580" height="580" scrolling="no" frameborder="0" style="" src="https://www.lexaloffle.com/bbs/widget.php?pid=11724&cat=7">;

It's still a work in progress, but feel free to use the current version if you like. It doesn't yet have options to control stuff like screen scale and volume control / reset & pause button etc.

If you can wait a bit longer, there will also be a stand-alone html5 player (for 0.1.3?) that can be used on sites like itch.io and Kongregate.


Cool! But wouldn't be possible to just dump current player to a html file that would load cartridge of specific name (say cart.p8.png) when opened or does it require some server-side magic to work?


Ah, an iframe, of course! That's really simple and smart! Thanks!

@darkhog I imagine with a bit of hacking you could maybe figure out how to do that, but I think it'd ultimately be better to wait for the stand-alone html5 player! I'm looking forward to that!


@zep, have you looked into asm.js for porting the code to html5? It might be possible with very few changes to the code base, if you're using C/C++ and SDL.


He's using emscriptem.


Yep, he's using emscripten, which naturally produces asm.js compliant code.



[Please log in to post a comment]