Skip to content

KSU-CS-Software-Engineering/HelmetConvincer

Repository files navigation

HelmetConvincer

Project Repository for Helmet Convincer project

Items included in this repository:

  • "Ardunio Code" - This code is used specifically for sending values to the computer or phone it is hooked up to. It does NOT calculate the values that are being sent out. It is merely a messenger.

  • "Unity Code" - The project code with the levels, scripts, and assets needed to build and deploy the project. It also contains a folder for successful builds that have been created and can be downloaded to the phone.

Technologies used

Downloading the Android SDK

  1. Using the link above, download Android Studio
  2. Once install, run Android studio and open the "SDK Manager" in the lower left corner of the Android Studio start screen
  3. This application requires a minimal API level of 19, though higher API levels may be required if running on a device newer than a Samsung Galaxy S7 Edge
  4. It is recommended that you install all API's of level 19 and above, though just API level 19 would suffice

Opening the project

  1. Clone this repository to a folder on your computer
  2. Open Unity and click the "Open" button
  3. Navigate to the Unity Code folder you cloned from this repository
  4. Open this folder as a project in Unity

Building the project to run on a computer

  1. In the Unity Editor, navigate to the Assets/Maps/Worldy.untiy file
  2. Double click to open the scene
  3. Navigate to File -> Build Settings
  4. Under the "Scenes in Build" portion, make sure that the Maps/World scene has been added. If it has not been added, click "Add Open Scenes"
  5. Select platform "PC, Mac, & Linux Standalone" and click the "Switch Platform" button
  6. Click the "Build" button to build the project or click "Build and Run" to build and then immediately begin the game
  7. Save the project in the UnityCode/Builds folder
  8. This creats a .exe application file that runs the game

Building the project to run on an Android phone

  1. In the Unity Editor, navigate to the Assets/Maps/Worldy.untiy file
  2. Double click to open the scene
  3. Navigate to File -> Build Settings
  4. Under the "Scenes in Build" portion, make sure that the Maps/World scene has been added. If it has not been added, click "Add Open Scenes"
  5. Select platform "Android"
  6. If no Android module is loaded, click the "Open Download Page" and follow Unity's instructions on setting up Android support
  7. Switch platform to "Android"
  8. Navigate to Edit -> Preference -> External Tools
  9. Click "Browse" for the JDK option and select the folder where you have stored the most recent version of the JDK. Do this for the Android SDK as well.
  10. If you don't have the most recent JDK or SDK they can been found using the links at the top of this page
  11. Navigate back to File -> Build Settings
  12. Change "Texture Compression" to ASTC
  13. Click the "Player Settings" button
  14. Open the "Other Settings" tab on the right
  15. Make sure the "Virtual Reality Supported" box is checked and the Virtual Reality SDK's listed include Oculus
  16. The Package Name should be com.CompanyName.ProductName (in this case, the project is currently labeled com.TallGrassINC.HelmetConvincer)
  17. The "Minimum API Level" should be level 19 (KitKat)
  18. The "Target API Level" should be "Highest Installed"
  19. The "Script Running Version" should be "Stable (.NET 3.5 Equivalent)"
  20. The "Scripting Backend" should be "Mono"
  21. The "API Compatibility Level" should be ".NET 2.0"
  22. The "Android Gamepad Support Level" should show "Works with D-pad"
  23. Once all settings are correct, click the "Build" button to bulid the project or "Build and Run" to build the project and deliver to an Android device connect to the computer through USB
  24. Save the build in the UnityCode/Builds folder
  25. This will create a .apk file that can be downloaded to an Android device and run using an Oculus VR device, such as the Gear VR headset