Detecting collisions in sprite kit
问题 I'm trying to make a simple game with sprite kit. The basic idea is that there is one player who can jump to avoid blocks. But i have a problem I don't know how to make it that when the player hits the block the player disappears and the blood animation starts. First of all i don't understand what this code does that I found on apples website. static const uint32_t blockCategory = 0x1 <<0; static const uint32_t playerCategory = 0x1 <<1; Than i am calling the didBeginContact function and put a