Tag: Tutorial
-
from Apple to Raspberry Pi: Making Classes in Python
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 possibly public methods In the implementation file we would have the…
-
The Slippy Flippy Dare: How to Use Basic Physics in Sprite Kit
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 them to the scene. It removes the developer from the math…
-
From Apple to Raspberry Pi: While Loops
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 in a loop to break execution. This is a valid loop…
-
The Slippy Flippy Challenge: How to Move a Sprite
Back in February, I bragged once that I could put together Flappy Bird in a week. Someone called my bluff, and I was challenged to do so. I did put together a game like Flappy Bird, and now I’ll show you how I did it. Last time we put a sprite of a penguin on…
-
The Making App Pie Tutorial: The Adventure Begins
I’ve been at Xcode and cocoa Touch for over a year. I’ve had over 1,400 downloads of my apps from the app store and learned a lot about programming in Xcode. I’ve realized something during this time: Programming in OOP is not like programming in C or Basic. When you have a graphic environment like…