Xcode Bug Report
Two days lost in air travel, and today’s session was all about troubleshooting the crashing Swift Playground in Xcode, so nothing useful got done today. Some cosmetic code readability fixes was commited during re-reading everything to try and figure out what could possibly cause the crashes.
Filed a bug report with Apple, so we’ll see what happens with that.
I guess my next step will be to try to use the framework I’ve been worksing on from the actual project, since I currently can’t use the playground to test the things I’m doing.
Next related
Giving up on fancy stuff
Another useless day struggling with tools instead of getting actual work done; but for now I’ll just include all the actual code from the framework in the main project and ignore the problems for now. This way I still get the reusable code separeted from the specific code, to get a better start on future projects.
Previous related
Path Finding
First attempt at using the GamePlayKit path finding GKGridGraph. Unfortunately, the playground currently crashes (because of some internal XCode bug maybe?), so it can’t be tested.
GameplayKit A*?
Let’s try to use the builtin [A](https://en.wikipedia.org/wiki/A_search_algorithm) in GameplayKit, and see if it works for our current demands.
Directional Navigation
Prereq work for implementing path finding: eight direction navigation. A tile can find its neighbours within its layer exit(direction:). Currently only within a single map region, because we haven’t implemented interregion links yet.