Giter Club home page Giter Club logo

cardboard-asteroids's Introduction

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.

Setup Instructions

  • Make sure you are running Unity 5.3.1f1 and 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.

Build Instructions

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: googlevr/gvr-unity-sdk#150. On this version of Unity you will need to disable CardboardAudioListener as a workaround. This will mean audio will be disabled.

iOS

  1. Open in Unity and go to File -> Build and Run.

  2. When XCode opens, make sure to add Security.framework in the XCode project under Build Phases -> Link Binary With Libraries in Project Settings otherwise your will receive a build error.

  3. If you are running Unity 5.3.2, turn off bitcode support in Build Settings -> Enable Bitcode and set it to No for Debug and Release

  4. Run Clean, Build then Run on your device.

Android

  1. Open in unity and go to File -> Build.

  2. When you choose android in Build, make sure you choose Landscape left as the default orientation.

Run Instructions

  1. Deploy the app to your device and run it.

  2. Tap the cog at the bottom of the screen when the game boots up and scan the QR code on your cardboard device.

  3. Stick your device in the Google Cardboard.

Game Controls

  • 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.