Log In  

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!

Link: https://www.lexaloffle.com/bbs/files/28213/PICO-8_ADVANCED.zip
zep, please let txt files get uploaded :(

P#58666 2018-11-02 10:24 ( Edited 2018-11-11 01:19)


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!

-- hold frame on or off

  if (hf==1) holdframe()
  for i=0,127 do
    for j=0,127 do
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 !

P#58671 2018-11-02 11:30 ( Edited 2018-11-02 16:17)

Thank you so much 😊 !!!!!!!!!! I'm really glad that you found something in it useful! ⭐

By the way, I found out about the snippet.php url from you post about it! So here's a star :)

P#58674 2018-11-02 12:49 ( Edited 2018-11-02 16:49)

By star it means the icon at the top-right-hand corner. These are denotations of excellence in coding and information.

You also have an option for 60fps using FLIP() so even better !

What is snippet.php ?

P#58675 2018-11-02 12:55 ( Edited 2018-11-02 16:55)

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.

P#58676 2018-11-02 12:58 ( Edited 2018-11-02 16:58)
P#58677 2018-11-02 13:00 ( Edited 2018-11-02 17:00)

Oh yeah, that snippet thingie. I posted about that somewheres.


P#58678 2018-11-02 13:13 ( Edited 2018-11-02 17:13)

Oh, and by the way, you can also do the palette change in the data.pod file of binary exported carts. The javascript engine is actually pushing that data as a list of integers to the data.pod file.

P#58684 2018-11-02 15:28 ( Edited 2018-11-02 19:28)

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

P#58693 2018-11-02 19:22 ( Edited 2018-11-02 23:28)


P#58715 2018-11-03 08:50 ( Edited 2018-11-03 12:50)

Has someone made a HTML template with the (O) (X) (Up) (Down) (Left) (Right) (Pause) buttons already in place ?

My problem is I know zero to nothing about Javascript or HTML.

Thanks for letting me know what is available.

P#58716 2018-11-03 11:42 ( Edited 2018-11-03 15:42)

This template displays buttons on mobile: https://github.com/headjump/pico8_html_template

P#58897 2018-11-09 16:56 ( Edited 2018-11-09 21:56)

If there's information in here that's not in the wiki, please feel free to add it. If you need assistance finding places to put things, just let me know.

P#58926 2018-11-10 20:19 ( Edited 2018-11-11 01:19)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2022-11-30 03:46:56 | 0.010s | Q:24