Log In  

Cart #39954 | 2017-04-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
11

Started playing around with 2D sims - fluids seem hard to do at reasonable resolution given CPU constraints, but waves are just fine. More natural boat control and bilinear interpolation for wave rendering (more detail! less blocky!) both might make this more fun.

I'm also wondering if there's a racing game here where you can interact with the waves and they aren't just part of the scenery.

P#39955 2017-04-26 06:06 ( Edited 2017-05-08 05:35)

>>I'm also wondering if there's a racing game here where you can interact with the waves and they aren't just part of the scenery.

not the same view but it might interest you:
https://www.lexaloffle.com/bbs/?pid=34014&tid=27836

P#39963 2017-04-26 11:57 ( Edited 2017-04-26 15:57)
2


It was a slow day today, so while this strips out the sound being played as I was just hacking on the wave-effect code, here's a version that uses a little less CPU overall but does the bilinear filtering you'd mentioned wanting above. It uses a LOT less CPU without the bilinear filtering code, but the filtering looks soooo nice IMHO it's worth it.

It's at a fixed size of 32x32 cells now, of which only the inner 30x30 are displayed and really updated, but enjoy all the same!

P#40210 2017-05-05 02:28 ( Edited 2017-05-05 06:37)

Oh awesome! You're right, the filtering looks a whole lot nicer. (Also, good call on the 5 color palette.) I might have to steal your rendering technique and vertical sprite layout for future projects! :)

P#40226 2017-05-05 21:22 ( Edited 2017-05-06 01:22)

Oh please, feel free!

I've been coding graphical-effects demos since before the internet existed, quite literally back in the DOS BBS door days, so doing funky bit-manipulation to squeeze a LOT more data out of no space at all is... something I'm rather too bloody good at sometimes. >_>;

I just wish PICO-8 had 2-byte and 4-byte peek/poke instructions. :S Sooo much more could be done then!

P#40296 2017-05-08 01:35 ( Edited 2017-05-08 05:35)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 15:06:24 | 0.017s | Q:22