Log In  


Cart #scannies-0 | 2024-05-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

A small little scanline test I made out of boredom..

I know it isn't top-tier, or the most efficient, but I tried, atleast.

If you care a bit for how this was done, I basically set a couple FOR loops, get certain pixels' color, retrieve a certain value from a table, set a pixel with the recently retrieved value from that table at the position of the pixel that we retrieved its' color from, and, then, repeat that ~8192 times, and then you got some mediocre scanlines! :D

I get that was a bit vague, but if you want a more detailed explanation, just look inside the cartridge.

(passive aggressiveness not intended.)

1


good try but totally destroys pico8 cpu!

try that instead at the end of your draw function:

 for i=0,15 do
  pal(i,i+128,2)
 end	
 -- uses alternate palette
 poke(0x5f5f,0x10)
 -- scanline mask
 memset(0x5f70,0xaa,16)

see: https://www.lexaloffle.com/bbs/?tid=38565


Oh wow, thanks! I didn't know scanlines could be achieved like that.



[Please log in to post a comment]