Tag Archives: SpriteKit

Checkers: Swift 1.2 to 2.0 transition in numbers and impressions

via Checkers: Swift 1.2 to 2.0 transition in numbers and impressions.

In my spare time I work on a futuristic checkers game for the iPad, written purely in Swift and SpriteKit. Last week I updated the codebase from Swift 1.2 (Xcode 6.4) to Swift 2.0 (Xcode 7β5).

In this post I outline the process and give some stats about the conversion, partly to document the experience of making such a transition in a “real project”, and partly to have something to show besides the look of disapproval the next time I hear someone say “I won’t use Swift, because each time a new Xcode comes out, you have to rewrite everything“…

Project 11: Pachinko with SpriteKit

via Project 11: Pachinko with SpriteKit – Overview – a free Hacking with Swift tutorial.

SpriteKit, physics, blend modes, radians, CGFloat, NSKeyedUnarchiver.

Build the Game of Life

via Create the Game of Life using Swift and SpriteKit | Make School.

In this tutorial, you will learn to develop Conway’s Game of Life using the new iOS programming language, Swift, and the SpriteKit game engine. This is a Swift version of the Game of Life tutorial, which can be found at https://www.makegameswith.us/curriculum/game-of-life-spritebuilder/. If you are unfamiliar with the game check out the Wikipedia article to learn more.

Radiating Visual Pulses: Visualising AudioKit Sounds in SpriteKit with SKAction

via Radiating Visual Pulses: Visualising AudioKit Sounds in SpriteKit with SKAction.

As I continue to experiment with my AudioKit/SpriteKit physics based audio generation app, I wanted a way to visually feedback on collisions.
The effect I wanted to recreate was an animated pulse radiating from the boxes; a cloned box that would grow and fade out with each collision.
I’ve implemented this effect in my TouchEnabledShapeNode. It exposes a displayCollision() method that accepts a single colorargument.

Spritely: Physics Based Computer Generated Music With AudioKit and SpriteKit

via FlexMonkey/Spritely · GitHub.

Using SpriteKit events to trigger AudioKit sounds

The blog post describing this project is here: http://flexmonkey.blogspot.co.uk/2015/03/physics-based-computer-generated-music.html

Story Telling SpriteKit Scene

via Story Telling SpriteKit Scene.

For games that put an emphasis on story, or games that use subtitles, and many other kinds of games. It can be user-friendly to reveal the story telling one letter at a time.

The end result of this code can look like this:https://www.youtube.com/watch?v=0s0ASv4xtTU

To create this cool result in a reusable way, I have created a StoryScene class that derives from SKScene parent. Then my actual level scenes derives from the StoryScene.

Sprite Kit Animations and Texture Atlases in Swift

via Sprite Kit Animations and Texture Atlases in Swift – Ray Wenderlich.

Tutorial Team member Tony Dahbura has ported this tutorial from Objective-C to Swift. We hope you enjoy!

In this Swift Sprite Kit tutorial, you will learn how to create a simple animation of a bear walking using the new Swift language and Sprite Kit framework.

You’ll also learn how to make the animation efficient by using texture atlases, how to make your bear move in response to touch events, and how to change the direction the bear faces based on where the bear is moving.

This tutorial assumes you at least know the basics of Sprite Kit. If you are completely new to Sprite Kit, be sure to check out our Sprite Kit Swift Tutorial for Beginners first.
Let’s get started!