<!--
{
  "availability" : [
    "visionOS: 2.0.0 -",
    "Xcode: 16.0.0 -",
    "iOS: 18.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/creating-a-spaceship-game",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Creating a Spaceship game"
}
-->

# Creating a Spaceship game

Build an immersive game using RealityKit audio, simulation, and rendering features.

## Overview

> Note: This sample code project is associated with WWDC24 session [10103: Discover RealityKit APIs for iOS, macOS and visionOS](https://developer.apple.com/wwdc24/10103/), and WWDC24 session [111801: Enhance your spatial computing app with RealityKit audio](https://developer.apple.com/wwdc24/111801/).



![A screenshot of the spaceship in mixed immersive space with camera passthrough](images/com.apple.RealityKit/passthrough_spaceship_medium_closeup.jpeg)



![A screenshot that shows the spaceship with trailer flying through asteroids in the studio environment](images/com.apple.RealityKit/studio_work_package_blue_green.jpeg)



![A screenshot that shows the spaceship with trailer flying in outer space](images/com.apple.RealityKit/outerspace_work_headlight_on_asteroids.jpeg)

### Configure the sample code project

To run this sample app, you need one of the following:

- Apple Vision Pro, running visionOS 2 or later
- Xcode 16 or later, with the visionOS Simulator
- iPad Pro with LiDAR Scanner and an M1 chip or later, running iPadOS 18 or later

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)