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 - |
Pregunta
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?
Solución 2
Otros consejos
Try Apple's approach, as they did in Adventure Game:
Reading the Map Section
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow