Reputation: 1108
I would like to create a game map for stages and levels within a game similar to the way the game Candy Crush or Two Dots have done for iOS devices. However, I want to ask the best and easiest way to achieve something like this in Swift...
Thanks
Upvotes: 4
Views: 2269
Reputation: 5397
Easiest way, just draw the image with path and background, mark the positions of levels and then place level icon on each position. If you don't need to move the player's avatar along the line, this will do.
However, if you want to show player's avatar moving from one level to another along the path, you will need to define those path using curves (bezier, cubic) and then calculate position of the player based on curve's formula and his progress between two levels
Upvotes: 2