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.
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.
[Please log in to post a comment]