When creating a level we randomly select fruit for a tile. This “randomness” causes matches to pre-exist in a level when presented to a player. This would reduce the challenge of the puzzle and should not be the case. We can easily eliminate these match chains by updating the Level class. Continue reading →
In order to provide a visual cue to the player the selected swiped fruit should be highlighted momentarily in order to indicate which fruit the player is about to swap. This selection highlighting animation can be achieved by temporarily placing a highlighted version of the sprite on top of the current sprite and having it along for the ride in the swap animation and eventually fading out. Continue reading →
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 →
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 →
Once the model was viewable it was time to load levels from a file in order to enable dynamic patterns. The file needed to have a pattern defined so that every level isn’t just a 9×9 grid. This pattern would be best represented in an array of arrays or a 2D Array. That would most easily be stored in a JSON file. Continue reading →
Seeing your App on device for the first time (or even in the simulator) can be an amazing feeling. That was my goal for today. After having the images and enough model classes it was time to invoke the model from the GameViewController. Continue reading →
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 →
There are three things I see almost every woman on the subway every morning in New York doing:
- Holding a White iPhone 6 or 6S,
- Wearing a Canada Goose Parka,
- 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 →
Last night I took my old workhorse Dell Inspiron 620 i5 that I had been using to run Lubuntu off a 32GB Cruzer Fit Nano thumb drive and put in:
- a new 1TB HD and
- a GeForce GT 640.
I installed Ubuntu 12.04 and after installing the tools I use (Ruby, Rails, Sublime, FireBug, Pocket, Skype, Evernote, mySQL, git, giggle, heroku, VLC, Flash downloader, iTunes 10 via Wine, and the Cairo Dock) I also now added Steam to the mix.
I connected the rig up to two monitors: 23″ Westinghouse (DVI) and a 27″ Acer (Mini HDMI).
I downloaded the free Team Fortress 2 from Valve and went through the training.
This HD and graphics card has really breathed new life into this workhorse and I look forward to using it on those rare times whenever I leave my 15″ rMBP.