What is the maximum number of allowed categories in the Sprite Kit?

I heard that only 32 different categories are allowed in each Sprite Kit game. Is there any way around this? I need more than then (about 3-4 times more, since the game is an open world). I set my classification mask as follows:

static const uint64_t boundaryCategory    = 0x1 << 0;
static const uint64_t mainCharCategory    = 0x1 << 1;
...
static const uint64_t someOtherCategory   = 0x1 << 31;

I even changed uint32_t to uint64_t, hoping to double the number of categories that I could use. Unfortunately no. If anyone knows some methods to get around this limit, I will be very grateful.

+4
source share
1 answer

. , , name node. BitMask , , .

SKNode. , , .

SKNode:

myNode.userData = [NSMutableDictionary dictionary];
[myNode.userData setObject:@"goblin" forKey:@"enemyType"];

:

NSString *myString = [myNode.userData objectForKey:@"enemyType"];
+7

All Articles