Log In  

I would expect map(...,0) to draw only tiles with no flags, but instead it draws all tiles. As it is there seems to be no way to draw only tiles which have no flags.

P#16676 2015-11-15 12:47 ( Edited 2016-01-31 02:20)

There is no way to draw on the inverse case of your flags. It is only a positive test.

IE: testing against zero means you don't care about any bits. 0x01 = bit 1 MUST be set, the other 7 do not matter.

P#16680 2015-11-15 17:28 ( Edited 2015-11-15 22:28)

Oh. Perhaps sometime we can get a function which renders only tiles with exactly matching flag bits?

P#16688 2015-11-16 04:04 ( Edited 2015-11-16 09:04)

I was also confused by the method of checking bits.

map(...,3) does not check only bit #3, and further experimentation shows no obvious correlation between what bit determines whether a tile will be drawn. Perhaps this ought to be clarified more in the pico8.txt

P#18545 2016-01-30 21:20 ( Edited 2016-01-31 02:23)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 08:38:04 | 0.006s | Q:15