iOS Maze Game Tutorial – Initial Setup

So Cartoon Smart have released another Tutorial, this time on how to make a Maze Game with Swift and Sprite Kit.

This has the ability to teach me how to make the Sokoban game I’ve been wanting to do for years.

I’ve never been able to work out how to push an object around a maze, just never sat down an properly thought about it.

I could get collision detection working with help from the Tile Based Tutorial on Ray Wenderlich.

First hurdle with this one was I stupidly didn’t pick the correct Game Technology.

In a New Project It Defaults to SceneKit and we’re using SpriteKit, although I think it remembers your last choice,

I had no GameScene.sks or GameScene.swift files which should have been my first prompt.

I made them and tried to run the app and got the following error:

Could not instantiate class named SCNView

Quick search on google came to:

Steps to fix:

Click on View
Identity Inspector
Class = SKView

This then worked.

My issue was is there anything else missing and would this lead to more problems further down the road.

Best start a new Project and check the correct settings.

It was a good mistake as I should learn to not do it again.

Anyway let the game development continue.

  1. March 6th, 2016
    Trackback from : Movem iOS game | Alex Hedley

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: