micromissiles-unity/README.md

121 lines
5.1 KiB
Markdown
Raw Normal View History

2024-09-24 17:34:30 -07:00
# micromissiles-unity
2024-09-24 22:01:15 -07:00
![Sim Salvo Animation](docs/images/sim_salvo_animation.gif)
2024-09-30 03:45:16 -07:00
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/PisterLab/micromissiles-unity/build.yaml?link=https%3A%2F%2Fgithub.com%2FPisterLab%2Fmicromissiles-unity%2Factions%2Fworkflows%2Fbuild.yaml)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/PisterLab/micromissiles-unity/test.yaml?label=tests&link=https%3A%2F%2Fgithub.com%2FPisterLab%2Fmicromissiles-unity%2Factions%2Fworkflows%2Ftest.yaml) ![GitHub Release](https://img.shields.io/github/v/release/PisterLab/micromissiles-unity?link=https%3A%2F%2Fgithub.com%2FPisterLab%2Fmicromissiles-unity%2Freleases%2Flatest)
2024-09-30 03:39:34 -07:00
2024-09-27 17:36:02 -07:00
# Quick Start
We generate pre-built standalone binaries for Windows and Mac users from the `release` branch. These binaries are intended for non-development users who just want to run the application and modify a few configurations along the way.
You can find the latest release [here](https://github.com/PisterLab/micromissiles-unity/releases/latest).
## Windows
2024-09-27 18:01:17 -07:00
1. Download the zip file for Windows: `micromissiles-<version>-windows_x86_64.zip`.
2. Unzip the zip file. The zip file should contain a single directory called `micromissiles-<version>-windows_x86_64`.
3. In the `micromissiles-<version>-windows_x86_64` directory, run `micromissiles-<version>-StandaloneWindows64.exe`.
2024-09-27 17:36:02 -07:00
## Mac
2024-09-27 18:01:17 -07:00
1. Download the tarball file for Darwin: `micromissiles-<version>-darwin.tar.gz`.
2. Untar the tarball. The tarball should contain a single directory called `micromissiles-<version>-darwin`.
3. In the `micromissiles-<version>-darwin` directory, run the app file.
4. If you get a warning that Apple cannot check the application for malicious software:
2024-09-27 17:36:02 -07:00
* Open `System Preferences`.
* Navigate to `Privacy & Security`.
* Click on `Open Anyway` to bypass Apple's developer check.
# Development
2024-09-24 17:34:30 -07:00
This guide will help you set up and run the project in development mode. You'll learn how to install Unity Hub, open the project, and navigate the main scene.
## Table of Contents
- [Prerequisites](#prerequisites)
- [Installation Steps](#installation-steps)
- [1. Install Unity Hub](#1-install-unity-hub)
- [2. Clone the Project Repository](#2-clone-the-project-repository)
- [3. Launch the Project via Unity Hub](#3-launch-the-project-via-unity-hub)
- [4. Open the Main Scene](#4-open-the-main-scene)
- [Next Steps](#next-steps)
- [Additional Resources](#additional-resources)
## Prerequisites
2024-09-27 17:36:02 -07:00
- A computer with internet access.
2024-09-24 17:34:30 -07:00
- Administrative privileges to install software.
- [Git](https://git-scm.com/downloads) installed on your system (optional, for cloning the repository).
## Installation Steps
### 1. Install Unity Hub
Unity Hub is a desktop application that manages your Unity projects and installations. It simplifies the process of installing different Unity versions and launching projects.
**Steps to Install Unity Hub:**
1. Visit the [Unity Download Page](https://unity3d.com/get-unity/download).
2. Click on **"Download Unity Hub"**.
3. Run the downloaded installer and follow the on-screen instructions to complete the installation.
### 2. Clone the Project Repository
Obtain the project source code by cloning the repository from GitHub.
```bash
git clone https://github.com/PisterLab/micromissiles-unity.git
```
Alternatively, you can download the repository as a ZIP file and extract it to a preferred location.
### 3. Launch the Project via Unity Hub
2024-09-24 18:10:12 -07:00
![Unity Hub](docs/images/unity_hub.png)
2024-09-24 17:34:30 -07:00
1. **Open Unity Hub**.
2. **Add the Project to Unity Hub**:
- Navigate to the **"Projects"** tab.
- Click on the **"ADD"** button.
- Browse to the folder where you cloned or extracted the project.
2024-09-27 17:36:02 -07:00
- Select the folder containing the `Assets` folder and click on **"Select Folder"**.
2024-09-24 17:34:30 -07:00
3. **Install the Required Unity Version**:
- Unity Hub will detect if the project requires a Unity version that is not currently installed.
- A notification or warning icon may appear next to the project name.
- Click on the notification and select **"Install Unity **[version]**"**.
- Unity Hub will download and install the required Unity version automatically.
4. **Open the Project**:
- Once the required Unity version is installed, click on the project name in Unity Hub to open it.
### 4. Open the Main Scene
After the project opens in Unity:
1. In the **Project** window (usually located at the bottom), navigate to:
```
Assets/Scenes/
```
2. Find the main scene file, usually named `MainScene.unity`.
3. Double-click on `MainScene.unity` to open it.
4. The scene will load in the **Scene** view. You can now run the simulation by clicking the **Play** button at the top of the Unity Editor.
## Next Steps
- Familiarize yourself with the [**Keybinds and Controls**](docs/Keybinds_and_Controls.md) to navigate and interact with the simulation.
- Learn how to configure the simulation settings by reading the [**Simulation Configuration Guide**](docs/Simulation_Config_Guide.md).
## Additional Resources
- [Keybinds and Controls](docs/Keybinds_and_Controls.md)
2024-09-27 17:36:02 -07:00
- [Simulation Configuration Guide](docs/Simulation_Config_Guide.md)