Gladeye Hackathon Project: Asteroids
VR Version of Asteroids that can be compiled to either Android or iOS from Unity.
We have a public Trello board available for viewing upcoming features and checking the progress of bug fixes.
A demo of alpha gameplay is available here.
Make sure you are running Unity
5.3.1f1and XCode 7 as this is the most compatible version with this project to date.
When building into XCode for the first time, you may be asked to install the possibly 'incompatible' Unity plugin. Allow it, as this will allow the Unity editor to trigger the clean / build cycle in XCode.
Note: the StarField Particle System must be placed as a child of the CardboardHead and must be set to Play On Awake.
Note: there is currently a bug in the Unity
5.3.2x audio spatializer which breaks
CardboardAudioListener and causes
crashing on startup: https://github.com/googlesamples/cardboard-unity/issues/150. On this version of Unity you will need
CardboardAudioListener as a workaround. This will mean audio will be disabled.
Open in Unity and go to
File -> Build and Run.
When XCode opens, make sure to add
Security.frameworkin the XCode project under
Build Phases -> Link Binary With Librariesin Project Settings otherwise your will receive a build error.
If you are running Unity 5.3.2, turn off bitcode support in
Build Settings -> Enable Bitcodeand set it to
Nofor Debug and Release
Run Clean, Build then Run on your device.
Open in unity and go to
File -> Build.
When you choose android in Build, make sure you choose Landscape left as the default orientation.
Deploy the app to your device and run it.
Tap the cog at the bottom of the screen when the game boots up and scan the QR code on your cardboard device.
Stick your device in the Google Cardboard.
Use your head to aim the ship / turret. The turret on the ship is locked to the forward facing direction of the ship and it will shoot where you look if the ship is standing still. If you are moving, there may be some slight drift in the stream of plasma released by the turret that you will need to correct for.
Aiming at an asteroid will cause the white reticule in the centre of the screen to turn red and the turret will automatically open fire.
Use the thrusters to move in space. While on, the thrusters will accelerate up to the maximum velocity. When switched off, the ship will glide until it comes to a complete stop. With careful aiming and toggling the thrusters the ship can navigate in space and fly around the asteroid field.
Thruster Controls for Cardboard V1
- Pull down and release the magnetic button on the side of the cardboard viewer to toggle thrusters on/off.
Thruster Controls for Cardboard V2
- Tap the button on the right-top side of the cardboard viewer to toggle engines on/off.