Image for post
Image for post
rawr.

How to make a simple SpriteKit game in Swift 3

Greetings and salutations! This is lesson 5 of our RainCat journey. In the previous lesson we had a long day going though some simple animations, cat behaviors, quick sound effects, and background music. Yesterday was our longest day yet, and today may be longer still.

Today we will focus on:

  • Heads up display (HUD) for scoring


Image for post
Image for post
meow.

How to make a simple SpriteKit game in Swift 3

Hello again! If you missed out on the previous lesson you can see it here. If you don’t have the code from the lesson 3, it is currently available here on GitHub.

In the last lesson we added in the bulk of our assets and finally positioned them correctly using the zPosition property. We added the cat as well as the functionality to respawn the cat when it falls offscreen to certain peril. Next we spawned the food at a random spot on screen, but with margins on either side of the screen, so it won’t be too close to the edge of the screen. We added collision for both of these sprites, and the cat is able to collect the food but only when pushed there with the umbrella. …


Image for post
Image for post
purr.

How to make a simple SpriteKit game in Swift 3

Welcome back! If you missed out on the previous lesson, you can see it here. If you don’t have the code from the previous lesson, it is available on GitHub.

In the last lesson, we added our umbrella sprite that has a custom SKPhysicsBody generated with a CGPath. We also added touch detection and the ability to move the umbrella. We hooked up collision detection leveraging categoryBitMask and contactTestBitMask. We removed collision on raindrops when they hit anything, so they don’t pile up but rather fall through the floor after one bounce. …


Image for post
Image for post
meow.

How to make a simple SpriteKit game in Swift 3

Welcome back! If you missed out on the first lesson, you can see it here. If you don’t have the code from the previous lesson, it is available on GitHub. Previously we covered project setup, adding a floor, randomly generating raindrops, and a few simple SKPhysicsBodys.

Today we will be focusing on the following:

  • Adding in the umbrella object to keep our cat dry from the rain


Image for post
Image for post
meow.

How to make a simple SpriteKit game in Swift 3

This 5-part article series will be about making a simple SpriteKit game on iOS that explores the basics of what SpriteKit and GameplayKit have to offer.

We will scratch the surface of the new GameplayKit library, and we will use simple physics with SKPhysicsBody. We will also program this in this in Swift 3, since it is the latest and greatest that Apple has to offer. To get a taste of what you are creating, check out the store link for the completed project. …


Image for post
Image for post
Alternate title: Weekend at Miitomo’s

So I was supposed to be working on a follow-up to my last write-up about the View-Master VR headset, but then I got a Samsung Galaxy S7 along with a GearVR. Needless to say, I tinkered with both for a few days. My last weekend was overrun with family, so all my other spare moments sank into Miitomo.

My wife rolled her eyes every time the music popped up, asking if the sound “really” needed to be on. I’ll admit that I sort of lied and told her that it was integral to my experience. My favorite music in Miitomo has to be in the Miifoto section. It’s light and cheery and seems to cycle randomly. You can listen to it here. It reminds me of Katamari Damacy, probably because of all the “Da da’s” sprinkled throughout the track. If you have the time, definitely listen to the whole thing. …


Image for post
Image for post

I told my wife that I was getting a ViewMaster for the kids, and she just assumed that I was feeling nostalgic for childhood toys. Instead I bought Mattel’s new ViewMaster VR headset to share with my kids and for myself to play with.

The ViewMaster functions just like Google Cardboard 2.0. It’s actually endorsed on Google’s Cardboard page. Usually with Cardboard 2.0 there’s an NFC switch, but on theViewMaster there’s a lever that touches the screen for interaction. The lever is a throwback to the vintage ViewMaster, and it feels great with the device. The advantage of using touch over NFC is that it’s compatible with iPhones which don’t support NFC. …

About

Marc J Vandehey

sr. developer at thirteen23

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store