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!

P#13869 2015-09-08 15:35 ( Edited 2015-09-09 17:44)

Here's link to Celeste's cart:


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.

P#13871 2015-09-08 17:35 ( Edited 2015-09-08 21:35)

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.

P#13874 2015-09-08 17:57 ( Edited 2015-09-08 22:00)

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?

P#13875 2015-09-08 18:03 ( Edited 2015-09-08 22:04)

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!

P#13876 2015-09-08 18:08 ( Edited 2015-09-08 22:08)

@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.

P#13887 2015-09-08 21:24 ( Edited 2015-09-09 01:24)

He's using emscriptem.

P#13922 2015-09-09 11:04 ( Edited 2015-09-09 15:04)

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

P#13924 2015-09-09 13:44 ( Edited 2015-09-09 17:44)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-01-31 03:47:31 | 0.008s | Q:22