Movem iOS game

So I found an implementation of an iOS Sokoban game

It’s a year old so my first step was to update it.

I ran the Xcode updater then got to the left over errors.

var isPaused: Bool = false

Touches Began

override func touchesBegan(touches: Set<UITouch>?, withEvent event: UIEvent?)
let touch = touches!.first


func checkForWin()
if ~isBoxOnGoal(box)
if !isBoxOnGoal(box)

I swapped out some images

Then i wanted to tile a background sprite

I found then I converted it


let digits = countElements(String(number))
let digits = String(number).characters.count


  1. No trackbacks yet.

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: