Log In  

Hi folks! First time poster here. I'm getting my head around p8 for the first time, and exploring lots of carts to learn more. One common thing I see in many carts is odd, dotted patterns buried deep in the sprite sets. Are these lookups for pallette swaps, or some other wizarding technique I'm unaware of?

P#60032 2018-12-16 21:27 ( Edited 2018-12-16 21:28)

1

The last two tabs of sprites and the lower half of the map both share the same space in memory. So if you have lots of sprites, you'll see weird stuff in the lower half of the map, and if you have a big map, you'll see weird stuff in the last two tabs of sprites. It's just one of the constraints built into PICO-8. Hope that helps! :)

P#60034 2018-12-16 22:19

Aha! I'd read that elsewhere, but it didn't sink in that this would be the result. I've evidently forgotten my 6502 days. Thanks so much!

P#60038 2018-12-17 00:24

In addition to the shared map/sprite memory, some carts use the space to store data for other uses. Each sprite holds 64 values from 0-15, and sget() can be used to reference those values. Using this approach for data storage can save a lot of tokens.

P#60049 2018-12-17 14:42

Yeah, that was my first assumption.

P#60054 2018-12-17 15:35

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 14:29:13 | 0.005s | Q:12