Kategorien
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 […]

Kategorien
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 […]

Kategorien
ObjectiveC SWIFT

WWDC 2014 and SWIFT

Welcome to Part 11 of my blog series about game development. I’ve been busy the last weeks with watching WWDC videos. So much new stuff and so little time ;-).  My favorites are Swift, Playground, Sprite Kit enhancements like the new level editor and especially this new Interface Builder Feature: It is possible to use ONE Storyboard to […]

Kategorien
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 […]

Kategorien
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: […]

Kategorien
HUD iOS ObjectiveC Parallax Effect SpriteKit

HowTo: Implement a HUD with SpriteKit

Welcome to Part 8 of my blog series about game development: HUD with SpriteKit Today I’ll add a HUD (head up display) to the SpriteKit Scene. The HUD shows the remaining lives, current, level, score and has the option to pause the game: Create the HUD: 1. Create a new SpritKit project in Xcode:       […]

Kategorien
iOS ObjectiveC Parallax Effect Scrolling UIKit

HowTo: Extend endless horizontal scrolling with a vertical parallax effects

Welcome to Part 7 of my blog series about game development: Scrolling with parallax effects Today I’ll extend the parallax effect from part 5 of my posts with vertical scrolling. This should increase the illusion of depth. To control the movement I’ll use the motion sensors as described in part 6. Steps to achieve this […]

Kategorien
iOS Motion Detection ObjectiveC Parallax Effect Scrolling

HowTo: Use the Device Motion Sensors to control your game

  Welcome to Part 6 of my blog series about game development: Device Motion Sensors Today I’ll include motion detection to control the movement of my game. iOS offers a powerful API to handle motion detection with the CMMotionManager class. Let’s start with a small standalone project to show how to use the motion detection:  

Kategorien
iOS ObjectiveC Parallax Effect Scrolling UIKit

HowTo: Implement endless scrolling with parallax effects

Welcome to Part 5 of my blog series about game development: Endless Scrolling Today I’ll create a component which implements the endless scrolling and adds some parallax effects. I’ll use SpriteKit for that. A nice tutorial about SpriteKit can be found here and here and here. If you haven’t completed part 3 or 4, you can download the project from […]

Kategorien
iOS ObjectiveC Parallax Effect Scrolling

HowTo: Implement endless scrolling in iOS and ObjectiveC

  Welcome to Part 4 of my blog series about game development: Endless Scrolling Today I’m showing how to implement an endless scrolling which is typical for Jump & Run games.  First of all you need a background with 3 sections like the one shown below:     Section 1 and 3 must be identical […]