From Apple To Raspberry Pi: An Example of Implementing a Python MVC (Part 2)

In the last part we implemented the view and controller for the Popper's Penguins application. Now we add the model.  Along the way, we will make a delegate method for the model and change our target actions to add our data to a list. Add the Model Class We want to keep a list of our penguin …

From Apple To Raspberry Pi: An Example of Implementing a Python MVC (Part 1)

I gave a template for MVC in the last post, This time I'm going to use it in the Popper's Penguins application. We'll re-organize what we already did with views and controllers to match the template.  We'll add the model in the next installment of this series. Changing the View Let's start by modifying the …

Living without Storyboards: Make a Working Stopwatch in Sprite Kit

Over the last few posts we've made a clock and stopwatch application in Sprite Kit. Last time, we added an animated button display for the stopwatch. This time we get the stopwatch buttons working. Get Our Variables in Order We will use several variables in our changes. Change our variables to the following: We changed …

The Slippy Flippy Challenge: Make Active Boundaries in Sprite Kit.

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 would be able to tell us what we hit, and run …