Fruity Crush Saga App Diary: Day 5

valigia piena di frutta

Having completed the swipe to swap it was time to update the model and animate the swap. This involved creating a new Swap struct. In Swift the struct is a value type versus a class which is a reference type. Here it makes sense to use a struct since the swap is inert and only stores data. The logic of handling the swap is not done by the swap itself. The detection of the swap is handled in the Game Scene and the real game logic is in the Game View Controller. Continue reading

Fruity Crush Saga App Diary: Day 4

Fruits

The essence of the match-three game is to move fruits such that three fruits of the same type match up. This move is done with a swipe. The Game Scene is the best place for implementing the detection of the player’s swipes that will reposition the fruits into this match pattern. The reposition is called the swap. Recognizing these swipes to swap in SpriteKit is best done with the touchesBegan, touchesMoved, and touchesEnded functions.  Continue reading

Fruity Crush Saga App Diary: Day 1

Mix of fresh fruits on wicker bascket

First days of app development are always filled with possibilities. But being distracted by say overthinking the revenue model is not something conducive to execution. I knew from experience making an app in the beginning is also overwhelming and so focusing on one goal at a time is a great way to start. Since I needed fruit art I got to work right away in Gimp. While making flat fruity pngs I thought about the features of the MVP and the game architecture but all while making the images. Continue reading

Fruity Crush Saga App Diary: Day 0

Basket full of fresh fruit

There are three things I see almost every woman on the subway every morning in New York doing:

  1. Holding a White iPhone 6 or 6S,
  2. Wearing a Canada Goose Parka,
  3. Playing some sort of candy-based match-three game.

I can’t make either an iPhone or a coat but I can make a game. My last game, Slappy Lock, was my first open source game. To complement my githubbing I thought I would keep an app diary for both my own organization and in the hopes that it helps anyone trying to reconstruct the code.  Continue reading

Open Source Swift on Ubuntu

Two years ago I wrote an entry on Cocoa Programming on Ubuntu that relied on the stable and mature but outdated Objective-C based GNUstep. It was hackey but it was the only way to do it then.

Last week Apple just made its self imposed date of delivering its new, modern, platform language, Swift, to the open source community and making it easy to use on Ubuntu. I have been itching to upgrade to 15.10 and what better excuse than to work on Swift.

Craig Federighi Introduces Open Source Swift on Linux at WWDC 2015

Craig Federighi Introduces Open Source Swift on Linux at WWDC 2015

This entry is my walkthrough on the steps I took to get a working Swift IDE on Ubuntu. Tl;dr: its like super easy and fun. Continue reading