> For the complete documentation index, see [llms.txt](https://kdoore.gitbook.io/cs2335/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kdoore.gitbook.io/cs2335/f20_bkup_v2/project3_overview/simplified-mini-game.md).

# Simplified Mini-Game

The video below shows the steps to import a simplified MiniGame if you were not able to get a working MiniGame for Project 1. This video assumes that you have already  imported and configured the [InventorySystem Files](/cs2335/f20_bkup_v2/inventory-system/inventory-scriptableobject/install-and-configure.md).

{% embed url="<https://youtu.be/gteQ5ZRrCVY>" %}

If you did not submit a working MiniGame for Project 1, then you can follow these steps to add required functionality of simplified minigame for Project 3. This version of the MiniGame does not have Spawner, ResultsPanel, or animation logic for the Player

**Required Configuration Steps, Details:**

* **Start:** Create a **backup version of your Project 2 Unity project.** You will add and modify this simplified MiniGame, to create Project 3.
* **Step 1: Download and install Inventory-System Code:** [**Inventory-System Class Files UnityPackage**](https://utdallas.box.com/s/3hj2cb6fssx9zwalxgoq0cu2wssnpves)**.**&#x20;
* **Step 2:** After downloading, installing, the Inventory-System Code, you must reconfigure the GameManager gameObject in BeginScene to insure that GameData.cs script component is attached. correctly configured.
* **Step 3:** Create a **Inventory ScriptableObject**, and **Attach to GameData in BeginScene**. (See additional details)
* **Resolve all errors** before downloading, installing the MiniGame\_v2 Package.
* **Step 4: Download and install:** [**Simplified Minigame\_v2: UnityPackage**](https://utdallas.box.com/s/yt6o4b3ga4alxule2eybw0igpeufpkbl)&#x20;
  * **Package Contents:**&#x20;
    * MiniGame\_v2 Scene with configured GameObjects&#x20;
    * Custom Scripts:  PlayerController\_v2, MiniGameManager\_v2
* **Step 5:** Attach **GameData.cs** to empty gameObject: GameManager gameObject in MiniGame\_v2.&#x20;
* **Step 6:** Attach **Inventory ScriptableObject** (created in Step 3) to the GameData component in the MiniGame\_v2.
* **Step 7** In MiniGame\_v2 Scene: **Sorting Layers** must be set for all objects with Image/SpriteRenderer Component: If a gameObject is not visible, set the sorting-layer for that object.
* You may need to fix prefabs by re-attaching and configuring PickUp.cs on Collectible GameObjects. &#x20;
* **Finally:** Try to **play the MiniGame\_v2**.
* **Verify Functionality:** StartButton starts the game, pickUp prefabs are visible, player gameObject can be moved using arrow keys, jump with spacebar. Verify score and health change when hitting PickUp objects.
