Training and Instructional Design
Swift is a new language. Objective C is not. Sometimes you have some Objective C code and want to make it into Swift code. I had a case of that this week when a reader asked me about continuous picker view wheels. If you… Continue Reading “Converting Objective C to Swift : The Circular Picker View Example”
Using Grids As Steve Jobs liked to say… “Oh, and one more thing more thing.” In my last post Living without Storyboards or Interface Builder, I mentioned scribbling on a piece of paper. I do that often, but it is helpful to go one… Continue Reading “Living Without Storyboards or Interface Builder: Grids and a Grid Class”
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”
Objective-C and Python are similar when it comes to defining new classes, but be careful with their differences. In Objective-C we would define a class with two files: a header and an implementation file. In the header we would declare properties like this And… Continue Reading “from Apple to Raspberry Pi: Making Classes in Python”
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”
In Xcode, both in Objective-C and C, we have the while loop. The python equivalent is also while Since we already understand the block, know sometimes as a suite in Python, while loops in Python are very simple to use. We can use break… Continue Reading “From Apple to Raspberry Pi: While Loops”