1
\$\begingroup\$

As a newbie to iOS programming, I'm wondering which of these would be more conducive to the type of game I want to program. I've been tasked to program an iOS game for my company. They asked me to do this after learning I was studying some Swift on my own time.

The game will be a turn-based strategy game consisting of a map with irregular areas/polygons and player pieces that can be moved on the map. I'll need to be able to detect when a piece moves into different areas and restrict a piece to moving only a certain number of areas per turn.

Can this be accomplished in straight Swift/Spritekit?

\$\endgroup\$

closed as off-topic by Draco18s, Tyyppi_77, Charanor, DMGregory Dec 26 '17 at 15:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – Tyyppi_77, Charanor, DMGregory
If this question can be reworded to fit the rules in the help center, please edit the question.

0
\$\begingroup\$

The graphical part can be achieved in SpriteKit very easily. To detect/restrict movement you can use Apple's Gameplay Kit, which is "generic" in the sense that it can be used with any graphic SDK, let is be SpriteKit or any other graphic library available in Swift.

You may want to check: Path finding in Gameplay Kit.

\$\endgroup\$
  • \$\begingroup\$ Thank you for that link! Arbitrary graph looks like the solution! \$\endgroup\$ – panzerblitzer Jun 6 '17 at 0:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.