Log In  


The manual describes layers, the optional last argument to map(), like so:

> LAYERS is a bitfield. When given, only sprites with matching sprite flags are drawn. For example, when LAYERS is 0x5, only sprites with flag 0 and 2 are drawn.

To me, this example indicates that only sprites with both flags set should be drawn. However, testing shows that sprites with either flag set will be drawn.

Cart #pederick_mapflagtest-0 | 2022-05-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

If this is as intended, can the manual be updated to say "or" rather than "and"? Something like this:

> LAYERS is a bitfield. When given, only sprites with at least one matching sprite flag are drawn. For example, when LAYERS is 0x5, only sprites with flag 0 or 2 are drawn.

2



[Please log in to post a comment]