I found my solution here, more simple and powerful: http://www.raywenderlich.com/49502/procedural-level-generation-in-games-tutorial-part-1
Best way to create physics body for a maze in Sprite Kit?
-
23-06-2023 - |
Question
I'm new to SpriteKit and iOS programming. I've been working on a new project about maze game using SpriteKit. I can't find any good way to create a Physics Body for my maze. I've tried this awesome tool SKPhysicsBody Path Generator but it didn't work, maybe because my maze was not in a "convex polygonal path" as the rules required (I'm not sure, I've tried a simple .png image with an upside down T shape). Is there any other way to do this job?
Solution 2
OTHER TIPS
Try Apple's approach, as they did in Adventure Game:
Reading the Map Section
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow