Log In  

Cart #38370 | 2017-03-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Happy Saturday!

This is an attempt to create a faster falling sand simulation (60fps) by reading and writing directly to screen memory. All pixels / sand particles are active at all times.

I was inspired by Helado's Tiny Terrarium and Axnjxn's Falling sand.

I'm writing 1X2 pixel blocks in order to work directly with bytes and avoid bit-masking to address individual pixels. Then, I am using the display mode hack ( poke(0x5f2c, 2) ) to stretch the vertical scale of the display by 2X without requiring me to write any more data to screen memory.

-Electric Gryphon

P#38371 2017-03-18 16:12 ( Edited 2017-03-19 00:01)

huh, is it just me or did you get a speed increase above mine? i might have to integrate some of this into it when i get around to updating it :)

P#38383 2017-03-18 20:01 ( Edited 2017-03-19 00:01)

damn powder game could be cool in pico 8!

P#143210 2024-03-15 22:11

[Please log in to post a comment]