Hi everyone, I'm ReplayCoding.
The PICO-8 community has helped me a LOT learning PICO-8, so I thought I would give something back. So, I wrote the PICO-8 advanced manual! It contains my findings about PICO-8 internals and stuff like that... I hope you enjoy it!
zep, please let txt files get uploaded :(
Advanced indeed !
This information is certainly of use to me.
All those lovely tasty little BYTES all laid out in memory pointers and descriptions. Good work and research here, Replaycoding.
You are a ROCKET SCIENTIST ! You have a command here I find MOST useful. Here is the code I wrote around it.
-- the power of holdframe! hf=0 -- hold frame on or off repeat if (hf==1) holdframe() for i=0,127 do for j=0,127 do pset(j,i,rnd(15)+1) end end flip() until forever
I KNEW this could be done. I knew there was no way the system could not merely wait until I wanted to update the screen myself. This opens up tremendous possibilities.
Here's a star ⭐
and your document will definitely be read cover to cover.
Very well exceptionally done !
Changing the palette in the .dat file is an interesting idea. I dunno if it's in the spirit of pico-8 to talk about this kind of thing, but it's actually possible to customize colors 1-15 in exported HTML/JS carts by searching for and replacing this string in the .js file:
with the RGB values of your choice. The RGB for color 0 (which is just 0,0,0) isn't adjacent to this block, so I have no idea if it's possible to change that.
snippet.php as in https://www.lexaloffle.com/bbs/snippet.php?cart_id=57568&src
Just finished reading your article. Hungry for more !
I didn't see this in there so will ask.
How do you do effects and stuff in your HTML to, for instance, create a clickable set of keys, add dither effect to output, striped CRT display, etc. ?
- Making a clickable set of keys can be done having an event on each button that sets the appropriate bit in the pico8_buttons variable.
- For the CRT effect, you would have to apply some kind of filter to the canvas. Take a look at https://www.zachstronaut.com/posts/2012/08/17/webgl-fake-crt-html5.html
- I don't understand what you mean by the dithering effect. Do you mean something like https://en.wikipedia.org/wiki/Dither? If so, check out https://ipenburg.home.xs4all.nl/atkinsome/
[Please log in to post a comment]