Game Development Reference
In-Depth Information
that is running the default Apple sample code. In this section, you will remove that code
and create a floor and the spaceman in his new environment.
SuperSpaceMan3D
Before you move on, let's get the project fully cleaned out so that you can start from
scratch. Unlike the previous game that was in portrait orientation only, this time you will
go with landscape orientation only, so you will need to change your target settings so they
look like
Figure 10-6
.
Figure 10-6
.
The SuperSpaceMan3D device orientation
The next thing to do is to replace the
GameViewController.swift
file's contents
create an empty
SCNScene
.
Listing 10-1
.
GameViewController.swift: The GameViewController
import UIKit
import QuartzCore
import SceneKit
class GameViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()