Categories
Collision Detection iOS SpriteKit SWIFT

Collision Detection

Adding basic game logic and collision detection: How to implement a space shooter with SpriteKit and SWIFT – Part 4   Tutorial Overview: How to implement a space shooter with SpriteKit and SWIFT Part 1: Initial project setup, sprite creation and movement using SKAction and SKConstraint Part 2: Adding enemies, bullets and shooting with SKAction and SKConstraint Part 3: Adding a HUD with […]

Categories
HUD iOS SWIFT

Create a HUD

Adding a HUD with SpriteKit and SWIFT: How to implement a space shooter with SpriteKit and SWIFT – Part 3   Tutorial Overview: How to implement a space shooter with SpriteKit and SWIFT Part 1: Initial project setup, sprite creation and movement using SKAction and SKConstraint Part 2: Adding enemies, bullets and shooting with SKAction and SKConstraint Part 3: Adding a HUD with […]

Categories
iOS SpriteKit SWIFT

Control Sprites with SKAction and SKConstraint

How to implement a space shooter with SpriteKit and SWIFT – Part 2: Adding enemies, bullets and shooting with SKAction and SKConstraint   Tutorial Overview: How to implement a space shooter with SpriteKit and SWIFT Part 1: Initial project setup, sprite creation and movement using SKAction and SKConstraint Part 2: Adding enemies, bullets and shooting with SKAction and SKConstraint Part 3: Adding […]

Categories
iOS SpriteKit SWIFT

SKAction and SKConstraint

Use SKAction and SKConstraint: How to implement a space shooter with SpriteKit and SWIFT – Part 1 Initial project setup, sprite creation and movement using SKAction and SKConstraint Tutorial Overview: How to implement a space shooter with SpriteKit and SWIFT Part 1: Initial project setup, sprite creation and movement using SKAction and SKConstraint Part 2: Adding enemies, bullets and […]

Categories
iOS SpriteKit SWIFT Xcode

Kick off for my new SpriteKit and SWIFT Tutorial

I’m preparing a new tutorial: How to implement a space shooter with SpriteKit and SWIFT My goal is to implement a complete space shooter with SpriteKit and SWIFT. Content is: Part 1: Initial project setup, sprite creation and movement using SKAction and SKConstraint Part 2: Adding enemies, bullets and shooting with SKAction and SKConstraint Part 3: Adding a HUD with SKLabelNode […]

Categories
iOS SpriteKit SWIFT

HowTo: Implement targeting or follow behaviour with SpriteKit and SKConstraint in SWIFT

Welcome to Part 14 of my blog series about iOS game development: SpriteKit and SKConstraint At the developer conference WWDC, in June this year, Apple showed a new class in SpriteKit: SKConstraint. It can be used to define constraints for the orientation, the distance or the position of SpriteKit nodes. In my todays blog post I’ll show […]

Categories
iOS ObjectiveC Storyboard UIKit Xcode

How to use an Universal Storyboards in Xcode

Welcome to Part 13 of my blog series about iOS game development: Universal Storyboards At the developer conference WWDC, in June this year, Apple showed a nice concept for targeting multiple form factors: The Universal Storyboards. Basically this replaces the iPad and the iPhone specific storyboards  with one universal storyboard. To enable different layouts for tablet […]

Categories
Apple TV iOS Motion Detection ObjectiveC SWIFT

How to combine / convert ObjectiveC into SWIFT

Welcome to Part 12 of my blog series about game development: convert ObjectiveC into SWIFT Today I’ll show how to combine SWIFT with Objective-C code. There is no need to migrate all of your existing code to SWIFT. You’ll not sell one App more, if this is the only improvement of your new version. Not […]

Categories
iOS ObjectiveC SpriteKit Storyboard UIKit

HowTo: Implement a Delegate Pattern to communicate between a SpriteKit Scene and the parent ViewController

Welcome to Part 10 of my blog series about game development. Today I’ll show how to use a delegate pattern to communicate with the ViewController which contains our Scene. You can download the project from GitHub: v0.7 if you haven’t completed part 8. One of the most important characteristics of this pattern is ‘Inversion of control’. The goal of […]

Categories
iOS ObjectiveC Xcode

HowTo: Organize ObjectiveC code with the pragma mark directive

Welcome to Part 9 of my blog series about game development: pragma mark directive   Todays post is very short. I’ll only show how the ‘#pragma mark‘ directive can help you to organize your code. The navigation bar on top of the code window provides the possibility to navigate in your code. Just click on the last entry: […]