Training and Instructional Design
Often code needs some way to describe a discrete set of cases. You might need values for breakfast lunch and dinner for example. How we configure a view might be set by one of a few choices. There are many types of UIButtons we… Continue Reading “How to Use enum and Enumerations in Swift”
In Flappy Bird, hitting the top or bottom boundaries ends the game. They also convey a sense of motion. The boundaries make for a better playing experience. Last time, we set up collision detection, but we need boundaries that are sprites. Sprite node boundaries… Continue Reading “The Slippy Flippy Challenge: Make Active Boundaries in Sprite Kit.”
In our first installment, we added a label and set up a clock. We could easily do that with a story board and a wired up label. The point of series this is to have a lot of cool animation running in Sprite Kit… Continue Reading “Make a Clock in Sprite Kit: Adding Animation to the Clock”
Build a Better Obstacle In the SlippyFlippy challenge we have a small obstacle. In Flappy Bird there are two obstacles which the bird has to pass between. Let’s change our current obstacle into a pass-through obstacle like Flappy Bird. Make a Random Obstacle… Continue Reading “The SlippyFlippy Challenge: Make a Better Obstacle in Sprite Kit”
Since my last post I got my first one-star review of SlippyFlippyPenguin. The Hard Mode bug did it. Someone else can’t start the game in hard mode. In my last entry, I set up a timer to fix what I thought is a user-related… Continue Reading “SlippyFlippy 1.1: The Bug Hunt”
The next item on the update project list is making a countdown timer. For those who haven’t read earlier episodes of this blog, there is a bug I cannot find. For a very small number of users, the game ends immediately when starting in… Continue Reading “SlippyFlippy 1.1: How to make a Countdown Timer in Sprite Kit.”
To make a game fun there must be a challenge. One of those challenges is some obstacle in your path or headed towards you. In both Flappy Bird and SlippyFlippyPenguin that obstacle is a large rectangle with a gap in it. Your job is… Continue Reading “The Slippy Flippy Dare: Making a Basic Obstacle”
Today we have a bug to deal with in SlippyFlippyPenguin. There are a two reports of when a user selects the hard skill level the game immediately goes to game over. I cannot find anything that is different in the code to account for… Continue Reading “SlippyFlippy 1.1: Adding a Fading-in and out Label with Background in SpriteKit”
This is the first of my improvements to the SlippyFlippy penguin game. While this may not make sense since I have not posted all the game code yet, it might help those trying to come up with some of these solutions for their own… Continue Reading “SlippyFlippy 1.1: Making a High and Low Score Indicator”
In the last installment of this series I showed two kinds of animation: SKAction and using the update: method from frame animation. The third major type of animation is using the physics engine. A physics engine takes the mathematical laws of physics and adds… Continue Reading “The Slippy Flippy Dare: How to Use Basic Physics in Sprite Kit”